forked from FasterXML/jackson-module-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
43 lines (34 loc) · 1.46 KB
/
Copy pathbuild.sbt
File metadata and controls
43 lines (34 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Basic facts
name := "jackson-module-scala"
organization := "com.fasterxml.jackson.module"
scalaVersion := "2.10.2"
crossScalaVersions := Seq("2.9.1", "2.9.1-1", "2.9.2", "2.9.3", "2.10.3")
scalacOptions ++= Seq("-deprecation", "-unchecked")
// Ensure jvm 1.6 for java
javacOptions ++= Seq("-source", "1.6", "-target", "1.6")
// Try to future-proof scala jvm targets, in case some future
// scala version makes 1.7 a default
scalacOptions <+= (scalaBinaryVersion) map { binVer =>
val Version29 = "^2\\.9.*$".r
binVer match {
case Version29() => "-target:jvm-1.5"
case _ => "-target:jvm-1.6"
}
}
libraryDependencies ++= Seq(
"com.fasterxml.jackson.core" % "jackson-core" % "2.4.0-SNAPSHOT",
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.4-SNAPSHOT",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.4.0-SNAPSHOT",
"com.thoughtworks.paranamer" % "paranamer" % "2.6",
"com.google.code.findbugs" % "jsr305" % "2.0.1",
"com.google.guava" % "guava" % "15.0",
// test dependencies
"com.fasterxml.jackson.datatype" % "jackson-datatype-joda" % "2.3.1" % "test",
"com.fasterxml.jackson.datatype" % "jackson-datatype-guava" % "2.3.1" % "test",
"com.fasterxml.jackson.module" % "jackson-module-jsonSchema" % "2.3.1" % "test",
"org.scalatest" %% "scalatest" % "2.0.M5b" % "test",
"junit" % "junit" % "4.11" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test"
)
// resource filtering
seq(filterSettings: _*)