mirror of https://github.com/sbt/sbt.git
Add -Xsource:3 flag
Adding Scala 3 compatible mode for the compilation of build.sbt files.
This commit is contained in:
parent
c013d1180c
commit
505492ed33
|
|
@ -973,7 +973,7 @@ object Defaults extends BuildCommon {
|
|||
val old = scalacOptions.value
|
||||
if (sbtPlugin.value && VersionNumber(scalaVersion.value)
|
||||
.matchesSemVer(SemanticSelector("=2.12 >=2.12.13")))
|
||||
old ++ Seq("-Wconf:cat=unused-nowarn:s")
|
||||
old ++ Seq("-Wconf:cat=unused-nowarn:s", "-Xsource:3")
|
||||
else old
|
||||
},
|
||||
persistJarClasspath :== true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue