Skip to content

Commit 9676904

Browse files
authored
Merge pull request #665 from dwijnand/versions
2 parents 571ed1d + 1bd9540 commit 9676904

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

build.sbt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ inThisBuild(Seq(
1111
),
1212
scmInfo := Some(ScmInfo(url("https://github.com/lightbend/mima"), "scm:git:git@github.com:lightbend/mima.git")),
1313
dynverVTagPrefix := false,
14+
scalaVersion := scala212,
1415
scalacOptions ++= Seq("-feature", "-Xsource:3", "-Xlint", "-Wconf:cat=deprecation&msg=Stream|JavaConverters:s"),
1516
resolvers ++= (if (isStaging) List(stagingResolver) else Nil),
1617
publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging),
@@ -25,6 +26,8 @@ commands += Command.command("testStaging") { state =>
2526
prep ::: "mimaReportBinaryIssues" :: state
2627
}
2728

29+
// Keep in sync with TestCli
30+
val scala212 = "2.12.15"
2831
val scala213 = "2.13.6"
2932
val scala3 = "3.0.2"
3033

functional-tests/src/main/scala/com/typesafe/tools/mima/lib/TestCli.scala

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ import scala.util.Try
88
import scala.util.{ Properties => StdLibProps }
99

1010
object TestCli {
11+
// Keep in sync with build.sbt
1112
val scala211 = "2.11.12"
1213
val scala212 = "2.12.15"
1314
val scala213 = "2.13.6"
14-
val scala3 = "3.0.1"
15+
val scala3 = "3.0.2"
1516
val hostScalaVersion = StdLibProps.scalaPropOrNone("maven.version.number").get
1617
val allScalaVersions = List(scala211, scala212, scala213, scala3)
1718
val testsDir = Directory("functional-tests/src/test")
@@ -51,11 +52,11 @@ object TestCli {
5152
final case class Conf(scalaVersions: List[String], dirs: List[Directory])
5253

5354
@tailrec private def readArgs(args: List[String], conf: Conf): Conf = args match {
54-
case "-3" :: xs => readArgs(xs, conf.copy(scalaVersions = scala3 :: conf.scalaVersions))
55-
case "-2.13" :: xs => readArgs(xs, conf.copy(scalaVersions = scala213 :: conf.scalaVersions))
56-
case "-2.12" :: xs => readArgs(xs, conf.copy(scalaVersions = scala212 :: conf.scalaVersions))
57-
case "-2.11" :: xs => readArgs(xs, conf.copy(scalaVersions = scala211 :: conf.scalaVersions))
58-
case "--scala-version" :: sv :: xs => readArgs(xs, conf.copy(scalaVersions = sv :: conf.scalaVersions))
55+
case "-3" :: xs => readArgs(xs, conf.copy(scalaVersions = conf.scalaVersions :+ scala3 ))
56+
case "-2.13" :: xs => readArgs(xs, conf.copy(scalaVersions = conf.scalaVersions :+ scala213))
57+
case "-2.12" :: xs => readArgs(xs, conf.copy(scalaVersions = conf.scalaVersions :+ scala212))
58+
case "-2.11" :: xs => readArgs(xs, conf.copy(scalaVersions = conf.scalaVersions :+ scala211))
59+
case "--scala-version" :: sv :: xs => readArgs(xs, conf.copy(scalaVersions = conf.scalaVersions :+ sv ))
5960
case "--cross" :: xs => readArgs(xs, conf.copy(scalaVersions = allScalaVersions))
6061
case s :: xs => readArgs(xs, conf.copy(dirs = testDirs(s) ::: conf.dirs))
6162
case Nil => conf

functional-tests/src/test/class-constructor-generics-nok/problems-3.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

functional-tests/src/test/type-parameters-change-breaks-method-signature-nok/problems-3.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)