diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 4c5cb0796..44e134d49 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -18,7 +18,7 @@ jobs: fail-fast: false matrix: java-version: [ 8, 17 ] - scala-binary-version: [ 2.12, 2.13, 3.3, 3.4.2 ] + scala-binary-version: [ 2.12, 2.13, 3.3, 3.4.3, 3.5.0 ] include: # Including lowest/highest versions that work with Java 21 - java-version: 21 @@ -34,7 +34,9 @@ jobs: - java-version: 21 scala-version: 3.3.3 - java-version: 21 - scala-version: 3.4.2 + scala-version: 3.4.3 + - java-version: 21 + scala-version: 3.5.0 runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -51,7 +53,7 @@ jobs: fail-fast: false matrix: java-version: [ 8, 17 ] - scala-version: [ 2.12, 2.13, 3.3, 3.4.2 ] + scala-version: [ 2.12, 2.13, 3.3, 3.4.3, 3.5.0 ] include: # Including lowest/highest versions that work with Java 21 - java-version: 21 @@ -67,7 +69,9 @@ jobs: - java-version: 21 scala-version: 3.3.3 - java-version: 21 - scala-version: 3.4.2 + scala-version: 3.4.3 + - java-version: 21 + scala-version: 3.5.0 runs-on: ubuntu-latest steps: @@ -99,7 +103,7 @@ jobs: strategy: fail-fast: false matrix: - scala-version: [ 2.12.19, 2.13.14, 3.3.3, 3.4.2 ] + scala-version: [ 2.12.19, 2.13.14, 3.3.3, 3.4.3, 3.5.0 ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/build.sc b/build.sc index 00ca44cce..a5bac90ba 100644 --- a/build.sc +++ b/build.sc @@ -57,15 +57,17 @@ val scala2_13Versions = 2.to(14) .map(v => s"2.13.${v}") val scala33Versions = Seq("3.3.0", "3.3.1", "3.3.2", "3.3.3") // .dropWhile(v => isJava21 && v == "3.3.0") -val scala34Versions = Seq("3.4.2") +// TODO: We can't have 3.4.0 & 3.4.1 until we solve https://github.com/com-lihaoyi/Ammonite/issues/1395 +val scala34Versions = Seq("3.4.2", "3.4.3") +val scala35Versions = Seq("3.5.0") val scala2Versions = scala2_12Versions ++ scala2_13Versions -val scala3Versions = scala33Versions ++ scala34Versions +val scala3Versions = scala33Versions ++ scala34Versions ++ scala35Versions val binCrossScalaVersions = Seq(scala2_12Versions.last, scala2_13Versions.last, scala33Versions.last) val assemblyCrossScalaVersions = - Seq(scala2_12Versions.last, scala2_13Versions.last, scala33Versions.last, scala34Versions.last) + Seq(scala2_12Versions.last, scala2_13Versions.last, scala33Versions.last, scala34Versions.last, scala35Versions.last) def isScala2_12_10OrLater(sv: String): Boolean = { (sv.startsWith("2.12.") && sv.stripPrefix("2.12.").length > 1) || sv.startsWith("2.13.") } @@ -223,8 +225,8 @@ trait AmmInternalModule extends CrossSbtModule with Bloop.Module { Seq(PathRef(millSourcePath / "src" / "main" / "scala-2.13-or-3")) else Nil val extraDir5 = - if (sv.startsWith("3.4")) - if (sv.stripPrefix("3.4.").toInt < 2) + if (sv.startsWith("3.4") || (sv.startsWith("3.5"))) + if (sv.startsWith("3.4.0") || sv.startsWith("3.4.1")) sys.error("Scala 3.4.0 and 3.4.1 are incompatible with Ammonite") else Seq(PathRef(millSourcePath / "src" / "main" / "scala-3.4.2+"))