forked from FasterXML/jackson-module-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
58 lines (43 loc) · 1.94 KB
/
build.sbt
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import java.io.File
// Basic facts
name := "jackson-module-scala"
organization := "com.fasterxml.jackson.module"
scalaVersion := "2.11.7"
crossScalaVersions := Seq("2.10.5", "2.11.7")
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature")
scalacOptions in (Compile, compile) += "-Xfatal-warnings"
// Ensure jvm 1.6 for java
lazy val java6Home = new File(System.getenv("JAVA6_HOME"))
javacOptions ++= Seq(
"-source", "1.6",
"-target", "1.6",
"-bootclasspath", Array((java6Home / "jre" / "lib" / "rt.jar").toString, (java6Home / ".." / "Classes"/ "classes.jar").toString).mkString(File.pathSeparator)
)
// Try to future-proof scala jvm targets, in case some future scala version makes 1.7 a default
scalacOptions += "-target:jvm-1.6"
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"com.fasterxml.jackson.core" % "jackson-core" % "2.6.3",
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.6.3",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.6.3",
"com.fasterxml.jackson.module" % "jackson-module-paranamer" % "2.6.3",
// test dependencies
"com.fasterxml.jackson.datatype" % "jackson-datatype-joda" % "2.6.3" % "test",
"com.fasterxml.jackson.datatype" % "jackson-datatype-guava" % "2.6.3" % "test",
"com.fasterxml.jackson.module" % "jackson-module-jsonSchema" % "2.6.3" % "test",
"org.scalatest" %% "scalatest" % "2.2.1" % "test",
"junit" % "junit" % "4.11" % "test"
)
// build.properties
resourceGenerators in Compile <+=
(resourceManaged in Compile, version, organization, name) map { (dir, v, o, n) =>
val file = dir / "com" / "fasterxml" / "jackson" / "module" / "scala" / "build.properties"
val contents = "version=%s\ngroupId=%s\nartifactId=%s\n".format(v, o, n)
IO.write(file, contents)
Seq(file)
}
// site
site.settings
site.includeScaladoc()
ghpages.settings
git.remoteRepo := "[email protected]:FasterXML/jackson-module-scala.git"