Skip to content

Commit 09fc8d9

Browse files
committed
fixup
1 parent 5d71be8 commit 09fc8d9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build.sbt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,14 @@ lazy val compat = new MultiScalaCrossProject(
6565
scalacOptions ++= Seq("-feature", "-language:higherKinds", "-language:implicitConversions"),
6666
// we need to force Scala 3 to use the latest Scala 2 stdlib, otherwise
6767
// we might get test failures if there are behavior changes in latest Scala 2 stdlib
68-
dependencyOverrides += "org.scala-lang" % "scala-library" % scala213,
68+
dependencyOverrides ++= {
69+
CrossVersion.partialVersion(scalaVersion.value) match {
70+
case Some((3, _)) =>
71+
Seq("org.scala-lang" % "scala-library" % scala213)
72+
case _ =>
73+
Seq()
74+
}
75+
},
6976
Compile / unmanagedSourceDirectories += {
7077
val sharedSourceDir = (ThisBuild / baseDirectory).value / "compat/src/main"
7178
CrossVersion.partialVersion(scalaVersion.value) match {

0 commit comments

Comments
 (0)