-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
70 lines (53 loc) · 2 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
organization := "edu.cmu.ml.rtw"
name := "matt-util"
version := "2.3.2"
scalaVersion := "2.11.8"
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
javacOptions ++= Seq("-Xlint:unchecked")
libraryDependencies ++= Seq(
// Java utility libraries (collections, option parsing, such things)
"com.google.guava" % "guava" % "17.0",
"log4j" % "log4j" % "1.2.16",
"commons-io" % "commons-io" % "2.4",
"org.apache.commons" % "commons-compress" % "1.9",
"org.apache.commons" % "commons-math3" % "3.6",
"net.sf.trove4j" % "trove4j" % "2.0.2",
// Scala utility libraries
"org.json4s" %% "json4s-native" % "3.2.11",
"com.typesafe.scala-logging" %% "scala-logging" % "3.4.0",
"ch.qos.logback" % "logback-classic" % "1.1.7", // backend for scala-logging
// Testing dependencies
"junit" % "junit" % "4.12",
"com.novocode" % "junit-interface" % "0.11" % "test",
"org.scalacheck" %% "scalacheck" % "1.11.4" % "test",
"org.scalatest" %% "scalatest" % "2.2.1" % "test"
)
cancelable in Global := true
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oD")
jacoco.settings
jacoco.reportFormats in jacoco.Config := Seq(
de.johoop.jacoco4sbt.ScalaHTMLReport(encoding = "utf-8", withBranchCoverage = true))
publishMavenStyle := true
pomIncludeRepository := { _ => false }
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
licenses := Seq("GPL-3.0" -> url("http://www.opensource.org/licenses/GPL-3.0"))
homepage := Some(url("http://github.com/matt-gardner/util"))
pomExtra := (
<scm>
<url>[email protected]:matt-gardner/util.git</url>
<connection>scm:git:[email protected]:matt-gardner/util.git</connection>
</scm>
<developers>
<developer>
<id>matt-gardner</id>
<name>Matt Gardner</name>
<url>http://cs.cmu.edu/~mg1</url>
</developer>
</developers>)