Skip to content

Commit e3f9970

Browse files
committed
SdPlugin / scalacOptions: only add -Xsource:3 for scala 2.12 & 2.13
1 parent 42da90d commit e3f9970

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sd/src/main/scala/com/sandinh/sbtsd/SdPlugin.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ object SdPlugin extends AutoPlugin {
5050
)
5151
if ((major, minor) == (2, 11)) opts += "-Ybackend:GenBCode"
5252
if (major == 2 && minor < 13) opts += "-target:jvm-1.8"
53-
if (major == 2) opts ++= Seq("-Xsource:3")
53+
// scala 2.11.12 still not support -Xsource:3
54+
if (major == 2 && minor > 11) opts += "-Xsource:3"
5455
opts.result()
5556
}
5657
}

0 commit comments

Comments
 (0)