File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments