Skip to content

Commit 0c27922

Browse files
committed
update Using from Scala 2.13.17 and add UsingTest
fixes #692 copies the sources from scala/scala repo; both `Using` and `UsingTest` needed slight adjustment to compile on 2.11 and 2.12 includes Scala upgrades: Scala 2.13.17, 2.12.20 (was .13, .19), Scala.js (because only latest Scala.js is available for 2.13.17)
1 parent 484a621 commit 0c27922

File tree

5 files changed

+760
-756
lines changed

5 files changed

+760
-756
lines changed

build.sbt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ lazy val root = project
5050
lazy val junit = libraryDependencies += "com.github.sbt" % "junit-interface" % "0.13.3" % Test
5151

5252
lazy val scala211 = "2.11.12"
53-
lazy val scala212 = "2.12.19"
54-
lazy val scala213 = "2.13.13"
53+
lazy val scala212 = "2.12.20"
54+
lazy val scala213 = "2.13.17"
5555
lazy val scala3 = "3.3.6"
5656

5757
lazy val compat = new MultiScalaCrossProject(
@@ -63,6 +63,9 @@ lazy val compat = new MultiScalaCrossProject(
6363
moduleName := "scala-collection-compat",
6464
scalaModuleAutomaticModuleName := Some("scala.collection.compat"),
6565
scalacOptions ++= Seq("-feature", "-language:higherKinds", "-language:implicitConversions"),
66+
// we need to force Scala 3 to use the latest Scala 2 stdlib, otherwise
67+
// we might get test failures if there are behavior changes in latest Scala 2 stdlib
68+
libraryDependencies += "org.scala-lang" % "scala-library" % scala213,
6669
Compile / unmanagedSourceDirectories += {
6770
val sharedSourceDir = (ThisBuild / baseDirectory).value / "compat/src/main"
6871
CrossVersion.partialVersion(scalaVersion.value) match {

0 commit comments

Comments
 (0)