-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathbuild.sbt
63 lines (51 loc) · 2.14 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
59
60
61
62
63
scalaVersion := "2.10.5"
organization := "com.socrata"
name := "soda-api-java"
// remember to update the README when you change this to a new release
version := "0.10.10"
mimaPreviousArtifacts := Set("com.socrata" % "soda-api-java" % "0.9.13")
compile/javacOptions ++= Seq("-g", "-Xlint:deprecation", "-Xlint:unchecked", "-target", "1.7", "-source", "1.7")
autoScalaLibrary := false
crossPaths := false
libraryDependencies ++= Seq(
"net.sf.opencsv" % "opencsv" % "2.0",
"joda-time" % "joda-time" % "2.1",
"org.glassfish.jersey.connectors" % "jersey-apache-connector" % "2.29.1",
"org.glassfish.jersey.core" % "jersey-client" % "2.29.1",
"org.glassfish.jersey.media" % "jersey-media-multipart" % "2.29.1",
"org.glassfish.jersey.media" % "jersey-media-json-jackson" % "2.29.1",
"org.glassfish.jersey.inject" % "jersey-hk2" % "2.29.1",
"com.fasterxml.jackson.core" % "jackson-core" % "2.8.6",
"com.fasterxml.jackson.module" % "jackson-module-jaxb-annotations" % "2.8.6",
"com.fasterxml.jackson.datatype" % "jackson-datatype-joda" % "2.8.6",
"com.fasterxml.jackson.jaxrs" % "jackson-jaxrs-json-provider" % "2.8.6",
"com.fasterxml.jackson.datatype" % "jackson-datatype-jaxrs" % "2.8.6",
"com.google.guava" % "guava" % "12.0",
"org.apache.commons" % "commons-lang3" % "3.1",
"commons-beanutils" % "commons-beanutils" % "1.8.3",
"commons-io" % "commons-io" % "1.3.2",
"javax.ws.rs" % "javax.ws.rs-api" % "2.1" artifacts(Artifact("javax.ws.rs-api", "jar", "jar")), // this is a workaround for https://github.com/jax-rs/api/issues/571
"com.novocode" % "junit-interface" % "0.9" % "test"
)
Test/parallelExecution := false
Test/logBuffered := false
Test/testOptions ++= Seq(
Tests.Argument(TestFrameworks.JUnit, "-v")
)
Compile/sourceGenerators += Def.task {
val targetDir = (Compile/sourceManaged).value / "com" / "socrata" / "api"
targetDir.mkdirs()
val target = targetDir / "APIVersion.java"
val out = new java.io.FileWriter(target)
try {
out.write(s"""
package com.socrata.api;
class APIVersion {
static final String version = ${com.rojoma.json.v3.ast.JString(version.value)};
}
""")
} finally {
out.close()
}
Seq(target)
}