From 8782b73d776496126fc63df981ac7e51178eedde Mon Sep 17 00:00:00 2001 From: Marcel Luethi Date: Fri, 5 Jul 2019 14:05:27 +0200 Subject: [PATCH] added explicit jvm-target directive for Scala 2.12 and higher (#268) --- project/Build.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Build.scala b/project/Build.scala index d4a1a62b0..944e56c5f 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -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")