Skip to content

Commit

Permalink
added explicit jvm-target directive for Scala 2.12 and higher (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelluethi authored and Ghazi-Bouabene committed Jul 5, 2019
1 parent a525b3a commit 8782b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/Build.scala
Expand Up @@ -22,7 +22,7 @@ object BuildSettings {
crossScalaVersions := Seq("2.11.12", "2.12.6"),
javacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 11)) => Seq("-source", "1.6", "-target", "1.6")
case _ => Seq()
case _ => Seq("-source", "1.8", "-target", "1.8")
}),
scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 11)) => Seq("-encoding", "UTF-8", "-Xlint", "-deprecation", "-unchecked", "-feature", "-target:jvm-1.6")
Expand Down

0 comments on commit 8782b73

Please sign in to comment.