diff --git a/build.sbt b/build.sbt index 7ec8bef8..3a0ad549 100644 --- a/build.sbt +++ b/build.sbt @@ -24,11 +24,16 @@ def compilerOptions(scalaVersion: String): Seq[String] = ) ++ (CrossVersion.partialVersion(scalaVersion) match { case Some((2, _)) => Seq( - "-Xsource:3", "-Xlint", + "-Xlint", // these are too annoying when crossbuilding "-Wconf:cat=unused-nowarn:s", ) case _ => Seq() + }) ++ + (CrossVersion.partialVersion(scalaVersion) match { + case Some((2, 12)) => Seq("-Xsource:3") + case Some((2, 13)) => Seq("-Xsource:3-cross") + case _ => Seq() }) // Useful to self-test releases @@ -42,7 +47,7 @@ commands += Command.command("testStaging") { state => // Keep in sync with TestCli val scala212 = "2.12.19" -val scala213 = "2.13.12" +val scala213 = "2.13.13" val scala3 = "3.3.3" val root = project.in(file(".")).settings( diff --git a/functional-tests/src/main/scala/com/typesafe/tools/mima/lib/TestCli.scala b/functional-tests/src/main/scala/com/typesafe/tools/mima/lib/TestCli.scala index 8d8ef3e7..9b88e85f 100644 --- a/functional-tests/src/main/scala/com/typesafe/tools/mima/lib/TestCli.scala +++ b/functional-tests/src/main/scala/com/typesafe/tools/mima/lib/TestCli.scala @@ -11,7 +11,7 @@ object TestCli { // Keep in sync with build.sbt val scala211 = "2.11.12" val scala212 = "2.12.19" - val scala213 = "2.13.12" + val scala213 = "2.13.13" val scala3 = "3.3.3" val hostScalaVersion = StdLibProps.scalaPropOrNone("maven.version.number").get val allScalaVersions = List(scala211, scala212, scala213, scala3) diff --git a/functional-tests/src/test/case-class-private-constructor-changes-ok/scalac-options-2.13.txt b/functional-tests/src/test/case-class-private-constructor-changes-ok/scalac-options-2.13.txt index aea506b6..93c192a7 100644 --- a/functional-tests/src/test/case-class-private-constructor-changes-ok/scalac-options-2.13.txt +++ b/functional-tests/src/test/case-class-private-constructor-changes-ok/scalac-options-2.13.txt @@ -1,2 +1,2 @@ --Xsource:3 --Wconf:cat=scala3-migration:s \ No newline at end of file +-Xsource:3-cross +-Wconf:cat=scala3-migration:s diff --git a/sbtplugin/src/sbt-test/sbt-mima-plugin/pom-only-project/build.sbt b/sbtplugin/src/sbt-test/sbt-mima-plugin/pom-only-project/build.sbt index 7aaf84ed..72135389 100644 --- a/sbtplugin/src/sbt-test/sbt-mima-plugin/pom-only-project/build.sbt +++ b/sbtplugin/src/sbt-test/sbt-mima-plugin/pom-only-project/build.sbt @@ -2,7 +2,7 @@ organization := "com.typesafe" name := "pom-only-project" version := "1.1.0" mimaPreviousArtifacts := Set(organization.value %% moduleName.value % "1.0.0") -scalaVersion := "2.13.12" +scalaVersion := "2.13.13" // this is an arbitrary dependency, but one that's known to cause issues in POM-only projects // see https://github.com/lightbend/mima/issues/768 for more context