Skip to content

Commit 4dcb4ff

Browse files
committed
fix routes cache directory
1 parent 9f91345 commit 4dcb4ff

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

dev-mode/sbt-plugin/src/main/scala/play/sbt/routes/RoutesCompiler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ object RoutesCompiler extends AutoPlugin {
176176
routesCompilerTasks.value,
177177
routesGenerator.value,
178178
(routes / target).value,
179-
streams.value.cacheDirectory,
179+
streams.value.cacheDirectory / scalaVersion.value,
180180
log
181181
)
182182
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
2+
3+
enablePlugins(PlayScala)
4+
5+
def Scala3 = "3.7.2"
6+
7+
scalaVersion := Scala3
8+
9+
crossScalaVersions := Seq("2.13.16", Scala3)
10+
11+
TaskKey[Unit]("check") := {
12+
val dir = crossTarget.value
13+
(Compile / managedSources).value.foreach{ src =>
14+
assert(
15+
IO.relativize(dir, src).isDefined,
16+
s"scalaVersion = ${scalaVersion.value}, file = $src"
17+
)
18+
}
19+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
2+
3+
GET /public/*file controllers.Assets.versioned(path="/public", file: Asset)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
2+
3+
addSbtPlugin("org.playframework" % "sbt-plugin" % sys.props("project.version"))
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
> + compile
2+
> + check

0 commit comments

Comments
 (0)