Add -Xsource:3 flag

Adding Scala 3 compatible mode for the compilation of build.sbt files.
This commit is contained in:
Amina Adewusi 2021-09-17 18:16:11 +01:00
parent c013d1180c
commit 505492ed33
1 changed files with 1 additions and 1 deletions

View File

@ -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,