forked from matt-gardner/pra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
86 lines (64 loc) · 2.43 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
75
76
77
78
79
80
81
82
83
84
85
86
organization := "edu.cmu.ml.rtw"
name := "pra"
version := "3.4"
scalaVersion := "2.11.7"
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
javacOptions ++= Seq("-Xlint:unchecked")
javaOptions in run ++= Seq("-Xmx140g")
//javaOptions ++= Seq("-agentpath:/home/mattg/clone/yjp-2015-build-15084/bin/linux-x86-64/libyjpagent.so=delay=10000")
crossScalaVersions := Seq("2.11.2", "2.10.3")
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",
// Scala utility libraries
"org.json4s" %% "json4s-native" % "3.2.11",
"edu.cmu.ml.rtw" %% "matt-util" % "2.3.2",
// Matrix stuff, both for java and scala
"net.sf.trove4j" % "trove4j" % "2.0.2",
"org.scalanlp" %% "breeze" % "0.10",
"org.scalanlp" %% "breeze-natives" % "0.10",
// MALLET, for optimization
"cc.mallet" % "mallet" % "2.0.7",
// GraphChi
"org.graphchi" %% "graphchi-java" % "0.2.2",
// Testing dependencies
"com.novocode" % "junit-interface" % "0.11",
"org.scalacheck" %% "scalacheck" % "1.11.4" % "test",
"org.scalatest" %% "scalatest" % "2.2.1" % "test"
)
// GraphChi leaves some threads running, so we need to call System.exit(). This makes that play
// nicely while in an sbt console.
fork := true
connectInput := true
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://matt-gardner.github.io/pra"))
pomExtra := (
<scm>
<url>[email protected]:matt-gardner/pra.git</url>
<connection>scm:git:[email protected]:matt-gardner/pra.git</connection>
</scm>
<developers>
<developer>
<id>matt-gardner</id>
<name>Matt Gardner</name>
<url>http://cs.cmu.edu/~mg1</url>
</developer>
</developers>)