Skip to content

Commit 5233024

Browse files
authored
Merge pull request #70 from mkurz/sbt2cross-update
Update sbt 2 cross build settings
2 parents df6e78f + e07aa48 commit 5233024

6 files changed

Lines changed: 12 additions & 14 deletions

File tree

.github/scala-steward.conf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ pullRequests.grouping = [
77
]
88

99
updates.pin = [
10-
// sbt-coffeescript is a sbt plugin and sbt plugins use Scala 2.12
11-
{ groupId = "org.scala-lang", artifactId = "scala-compiler", version = "2.12." },
12-
{ groupId = "org.scala-lang", artifactId = "scala-library", version = "2.12." },
13-
{ groupId = "org.scala-lang", artifactId = "scala-reflect", version = "2.12." },
14-
{ groupId = "org.scala-lang", artifactId = "scalap", version = "2.12." }
1510
]
1611

1712
updatePullRequests = never

.github/workflows/build-test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717
name: Tests
1818
uses: playframework/.github/.github/workflows/cmd.yml@v3
1919
with:
20-
java: 25, 21, 17
21-
scala: 2.12.21, 3.8.2
20+
java: 25, 17, 11, 8
21+
scala: 2.12.x, 3.x
22+
# Scala 3 build is only supported on Java 17 in this workflow.
23+
exclude: '[{"java": "8", "scala": "3.x"}, {"java": "11", "scala": "3.x"}]'
2224
cmd: |
2325
sbt ++$MATRIX_SCALA test scripted
2426

build.sbt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ developers += Developer(
1313
url("https://github.com/playframework")
1414
)
1515

16-
addSbtJsEngine("1.4.0-M2")
17-
addSbtWeb("1.6.0-M2")
16+
addSbtJsEngine("1.4.0-M4")
17+
addSbtWeb("1.6.0-M4")
1818

1919
libraryDependencies ++= Seq(
2020
"org.webjars.npm" % "node-require-fallback" % "1.0.0",
@@ -34,14 +34,14 @@ Global / onLoad := (Global / onLoad).value.andThen { s =>
3434

3535
ThisBuild / (pluginCrossBuild / sbtVersion) := {
3636
scalaBinaryVersion.value match {
37-
case "2.12" => "1.12.4"
38-
case _ => "2.0.0-RC9"
37+
case "2.12" => "1.12.9"
38+
case _ => "2.0.0-RC11"
3939
}
4040
}
4141

4242
scalacOptions := {
4343
CrossVersion.partialVersion(scalaVersion.value) match {
44-
case Some((2, _)) => Seq("-Xsource:3")
44+
case Some((2, _)) => Seq("-Xsource:3", "-release:8")
4545
case _ => Seq.empty
4646
}
4747
}

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.12.8
1+
sbt.version=1.12.9

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
addSbtPlugin("com.github.sbt" % "sbt-web-build-base" % "2.1.0-M2")
1+
addSbtPlugin("com.github.sbt" % "sbt-web-build-base" % "2.1.0-M3")
22

33
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")

src/main/scala/com/typesafe/sbt/coffeescript/SbtCoffeeScript.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import sbt.Keys._
1010
object Import {
1111

1212
object CoffeeScriptKeys {
13+
@transient
1314
val coffeescript = TaskKey[Seq[File]]("coffeescript", "Invoke the CoffeeScript compiler.")
1415

1516
val bare = SettingKey[Boolean]("coffeescript-bare", "Compiles JavaScript that isn't wrapped in a function.")

0 commit comments

Comments
 (0)