@@ -7,7 +7,7 @@ organization := "com.fasterxml.jackson.module"
77
88scalaVersion := " 2.11.8"
99
10- crossScalaVersions := Seq (" 2.10.6" , " 2.11.8" )
10+ crossScalaVersions := Seq (" 2.10.6" , " 2.11.8" , " 2.12.0-M4 " )
1111
1212scalacOptions ++= Seq (" -deprecation" , " -unchecked" , " -feature" )
1313
@@ -25,8 +25,15 @@ javacOptions ++= Seq(
2525 " -bootclasspath" , Array ((java6Home / " jre" / " lib" / " rt.jar" ).toString, (java6Home / " .." / " Classes" / " classes.jar" ).toString).mkString(File .pathSeparator)
2626)
2727
28- // Try to future-proof scala jvm targets, in case some future scala version makes 1.7 a default
29- scalacOptions += " -target:jvm-1.6"
28+ scalacOptions ++= (
29+ if (scalaVersion.value.startsWith(" 2.12" )) {
30+ // -target is deprecated as of Scala 2.12, which uses JVM 1.8 bytecode
31+ Seq .empty
32+ } else {
33+ // Explicitly target 1.6 for scala < 2.12
34+ Seq (" -target:jvm-1.6" )
35+ }
36+ )
3037
3138libraryDependencies ++= Seq (
3239 " org.scala-lang" % " scala-reflect" % scalaVersion.value,
@@ -38,7 +45,7 @@ libraryDependencies ++= Seq(
3845 " com.fasterxml.jackson.datatype" % " jackson-datatype-joda" % " 2.7.3" % " test" ,
3946 " com.fasterxml.jackson.datatype" % " jackson-datatype-guava" % " 2.7.3" % " test" ,
4047 " com.fasterxml.jackson.module" % " jackson-module-jsonSchema" % " 2.7.3" % " test" ,
41- " org.scalatest" %% " scalatest" % " 2.2.1 " % " test" ,
48+ " org.scalatest" %% " scalatest" % " 2.2.6 " % " test" ,
4249 " junit" % " junit" % " 4.11" % " test"
4350)
4451
0 commit comments