This repository has been archived by the owner on Jun 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
/
build.sbt
74 lines (60 loc) · 1.96 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
64
65
66
67
68
69
70
71
72
73
74
name := "ostrich"
version := "9.1.0"
organization := "com.twitter"
crossScalaVersions := Seq("2.9.2", "2.10.0")
javacOptions ++= Seq("-source", "1.6", "-target", "1.6")
javacOptions in doc := Seq("-source", "1.6")
parallelExecution in Test := false
resolvers += "twitter repo" at "http://maven.twttr.com"
libraryDependencies ++= Seq(
"com.twitter" %% "util-core" % "6.1.0",
"com.twitter" %% "util-eval" % "6.1.0",
"com.twitter" %% "util-logging" % "6.1.0",
"com.twitter" %% "util-jvm" % "6.1.0",
"com.twitter" %% "scala-json" % "3.0.1"
)
libraryDependencies ++= Seq(
"org.scala-tools.testing" %% "specs" % "1.6.9" % "test" cross CrossVersion.binaryMapped {
case "2.9.2" => "2.9.1"
case "2.10.0" => "2.10"
case x => x
},
"junit" % "junit" % "4.8.1" % "test",
"cglib" % "cglib" % "2.1_3" % "test",
"asm" % "asm" % "1.5.3" % "test",
"org.objenesis" % "objenesis" % "1.1" % "test",
"org.hamcrest" % "hamcrest-all" % "1.1" % "test",
"org.jmock" % "jmock" % "2.4.0" % "test"
)
publishMavenStyle := true
publishTo <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("sonatype-snapshots" at nexus + "content/repositories/snapshots")
else
Some("sonatype-releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
pomIncludeRepository := { x => false }
pomExtra := (
<url>https://github.com/twitter/ostrich</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>
<scm>
<url>git@github.com:twitter/ostrich.git</url>
<connection>scm:git:git@github.com:twitter/ostrich.git</connection>
</scm>
<developers>
<developer>
<id>twitter</id>
<name>Twitter Inc.</name>
<url>https://www.twitter.com/</url>
</developer>
</developers>
)