@@ -7,7 +7,7 @@ organization := "com.fasterxml.jackson.module"
7
7
8
8
scalaVersion := " 2.11.8"
9
9
10
- crossScalaVersions := Seq (" 2.10.6" , " 2.11.8" )
10
+ crossScalaVersions := Seq (" 2.10.6" , " 2.11.8" , " 2.12.0-M4 " )
11
11
12
12
scalacOptions ++= Seq (" -deprecation" , " -unchecked" , " -feature" )
13
13
@@ -25,8 +25,15 @@ javacOptions ++= Seq(
25
25
" -bootclasspath" , Array ((java6Home / " jre" / " lib" / " rt.jar" ).toString, (java6Home / " .." / " Classes" / " classes.jar" ).toString).mkString(File .pathSeparator)
26
26
)
27
27
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
+ )
30
37
31
38
libraryDependencies ++= Seq (
32
39
" org.scala-lang" % " scala-reflect" % scalaVersion.value,
@@ -38,7 +45,7 @@ libraryDependencies ++= Seq(
38
45
" com.fasterxml.jackson.datatype" % " jackson-datatype-joda" % " 2.7.3" % " test" ,
39
46
" com.fasterxml.jackson.datatype" % " jackson-datatype-guava" % " 2.7.3" % " test" ,
40
47
" 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" ,
42
49
" junit" % " junit" % " 4.11" % " test"
43
50
)
44
51
0 commit comments