Skip to content

Commit 95c1a64

Browse files
chore: add scalac options for 3-cross
1 parent 5c633ec commit 95c1a64

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

project/Settings.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Release.*
22
import org.typelevel.sbt.tpolecat.*
3-
import org.typelevel.scalacoptions.*
3+
import org.typelevel.scalacoptions.{ScalaVersion, *}
44
import sbt.*
55
import sbt.Keys.*
66
import sbt.ScriptedPlugin.autoImport.{scriptedBufferLog, scriptedLaunchOpts}
@@ -24,7 +24,10 @@ object Settings {
2424
case _ => sourceDir / "scala-2.13+"
2525
}
2626
},
27-
tpolecatScalacOptions ++= Set(ScalacOptions.source3)
27+
tpolecatScalacOptions ++= Set(
28+
ScalacOptions.source("3", version => version.isBetween(ScalaVersion.V2_12_0, ScalaVersion.V2_13_0)),
29+
ScalacOptions.source("3-cross", version => version.isBetween(ScalaVersion.V2_13_0, ScalaVersion.V3_0_0))
30+
)
2831
)
2932

3033
lazy val coreSettings: Seq[Setting[?]] = Seq(

0 commit comments

Comments
 (0)