Skip to content

Commit

Permalink
Merge pull request #256 from Atry/scalaBinaryVersion
Browse files Browse the repository at this point in the history
Determine -Xexperimental flag from scalaBinaryVersion instead of scalaVersion
  • Loading branch information
Atry authored Jun 3, 2019
2 parents 3ba1e29 + 6a14db1 commit 2201775
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dsl/build.sbt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
scalacOptions ++= {
import Ordering.Implicits._
if (VersionNumber(scalaVersion.value).numbers < Seq(2L, 12L)) {
// Enable SAM types for Scala 2.11
Some("-Xexperimental")
} else {
None
scalaBinaryVersion.value match {
case "2.11" =>
Some("-Xexperimental")
case _ =>
None
}
}


scalacOptions ++= {
import Ordering.Implicits._
if (VersionNumber(scalaVersion.value).numbers >= Seq(2L, 13L)) {
Expand Down

0 comments on commit 2201775

Please sign in to comment.