Skip to content

Commit 51388df

Browse files
committed
update scalacOptions
1 parent 711e146 commit 51388df

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

build.sbt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ publishTo := {
2727
scalacOptions := Seq("-deprecation", "-feature")
2828

2929
scalacOptions ++= {
30-
if (scalaBinaryVersion.value != "3") {
31-
Seq("-Xsource:3")
32-
} else {
33-
Nil
30+
scalaBinaryVersion.value match {
31+
case "2.12" =>
32+
Seq("-Xsource:3")
33+
case "2.13" =>
34+
Seq("-Xsource:3-cross")
35+
case _ =>
36+
Nil
3437
}
3538
}
3639

0 commit comments

Comments
 (0)