Skip to content

Commit

Permalink
Make Scala 3 the default axis, instead of 2.13
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Sep 22, 2024
1 parent 336b752 commit fb4b433
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion main/src/main/scala/sbt/ProjectMatrix.scala
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ object ProjectMatrix {

// called by macro
def apply(id: String, base: File): ProjectMatrix = {
val defaultDefAxes = Seq(VirtualAxis.jvm, VirtualAxis.scalaABIVersion("2.13.3"))
val defaultDefAxes = Seq(VirtualAxis.jvm, VirtualAxis.scalaABIVersion("3.3.3"))
val matrix = unresolved(
id,
base,
Expand Down
4 changes: 2 additions & 2 deletions sbt-app/src/sbt-test/project-matrix/jvm-sandwich/test
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

> fooApp3_0_0_M1/compile

> barApp/compile
> barApp2_13/compile

> bazApp/check
> bazApp2_13/check
2 changes: 1 addition & 1 deletion sbt-app/src/sbt-test/project-matrix/jvm-with-scoping/test
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
$ exists target/out/jvm/scala-2.13.3/core/backend/a/Core.class
$ exists target/out/jvm/scala-2.12.12/core/backend/a/Core.class

> core/check
> core2_13/check
6 changes: 3 additions & 3 deletions sbt-app/src/sbt-test/project-matrix/jvm/build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
lazy val scala213 = "2.13.3"
lazy val scala212 = "2.12.12"
lazy val scala3 = "3.4.2"
lazy val check = taskKey[Unit]("")

lazy val root = (project in file("."))
Expand All @@ -13,7 +13,7 @@ lazy val app = (projectMatrix in file("app"))
.settings(
name := "app"
)
.jvmPlatform(scalaVersions = Seq(scala213))
.jvmPlatform(scalaVersions = Seq(scala3))

lazy val core = (projectMatrix in file("core"))
.settings(
Expand All @@ -22,7 +22,7 @@ lazy val core = (projectMatrix in file("core"))
assert(projectMatrixBaseDirectory.value == file("core"))
},
)
.jvmPlatform(scalaVersions = Seq(scala213, scala212))
.jvmPlatform(scalaVersions = Seq(scala213, scala3))

lazy val intf = (projectMatrix in file("intf"))
.settings(
Expand Down
2 changes: 1 addition & 1 deletion sbt-app/src/sbt-test/project-matrix/jvm/test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
> compile

$ exists target/out/jvm/scala-2.13.3/core/backend/a/Core.class
$ exists target/out/jvm/scala-2.12.12/core/backend/a/Core.class
$ exists target/out/jvm/scala-3.4.2/core/backend/a/Core.class

> core/check
2 changes: 1 addition & 1 deletion sbt-app/src/sbt-test/project-matrix/lib/build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ThisBuild / version := "0.1.0-SNAPSHOT"
version := "0.1.0-SNAPSHOT"

lazy val util = projectMatrix
.jvmPlatform(scalaVersions = Seq("2.12.19", "2.13.13"))
Expand Down
2 changes: 1 addition & 1 deletion sbt-app/src/sbt-test/project-matrix/lib/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ $ copy-file target/out/jvm/scala-2.12.19/strayjar/strayjar_2.12-0.1.0-SNAPSHOT.j
# check ss
$ mkdir ss/lib
$ copy-file target/out/jvm/scala-2.12.19/strayjar/strayjar_2.12-0.1.0-SNAPSHOT.jar ss/lib/strayJar.jar
> ss/compile
> ss2_13/compile

0 comments on commit fb4b433

Please sign in to comment.