Skip to content

Commit 05d6d1d

Browse files
authored
Merge pull request sbt#539 from xuwei-k/update-scalac-options
2 parents cb81d77 + e544db5 commit 05d6d1d

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

build.sbt

+12-3
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,21 @@ lazy val root = (project in file("."))
1717
.enablePlugins(SbtPlugin, ContrabandPlugin)
1818
.settings(nocomma {
1919
name := "sbt-assembly"
20-
scalacOptions := Seq(
21-
"-Xsource:3",
20+
scalacOptions ++= {
21+
scalaBinaryVersion.value match {
22+
case "3" =>
23+
Nil
24+
case _ =>
25+
Seq(
26+
"-Xsource:3",
27+
"-Xfuture",
28+
)
29+
}
30+
}
31+
scalacOptions ++= Seq(
2232
"-deprecation",
2333
"-unchecked",
2434
"-Dscalac.patmat.analysisBudget=1024",
25-
"-Xfuture",
2635
)
2736
libraryDependencies += jarjar.cross(CrossVersion.for3Use2_13)
2837
(pluginCrossBuild / sbtVersion) := {

0 commit comments

Comments
 (0)