diff --git a/Dsl/build.sbt b/Dsl/build.sbt index 61f36d918..e2a238445 100644 --- a/Dsl/build.sbt +++ b/Dsl/build.sbt @@ -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)) {