-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.sbt
86 lines (67 loc) · 2.33 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
organization := "org.scalanlp"
name := "gust"
version := "0.2-SNAPSHOT"
scalaVersion := "2.11.5"
crossScalaVersions := Seq("2.11.5", "2.10.4")
libraryDependencies ++= Seq(
"junit" % "junit" % "4.5" % "test",
"org.scalanlp" % "jcuda" % "0.5.5",
"org.scalanlp" %% "breeze-macros" % "0.11-M0",
"org.scalanlp" %% "breeze" % "0.11-M0",
"org.scalatest" %% "scalatest" % "2.1.3" % "test",
//"com.nativelibs4java" % "javacl" % "1.0-SNAPSHOT",
"com.nativelibs4java" % "bridj" % "0.6.2",
"org.scalacheck" %% "scalacheck" % "1.11.3" % "test",
"org.scalanlp" % "jcublas2" % "0.5.5",
"org.scalanlp" % "jcurand" % "0.5.5",
"org.scalanlp" % "jcusparse2" % "0.5.5",
"com.storm-enroute" %% "scalameter" % "0.6"
)
libraryDependencies <++= scalaVersion { v =>
if(v.startsWith("2.11"))
Seq("org.scala-lang.modules" % "scala-xml_2.11" % "1.0.1" % "test")
else
Seq.empty
}
fork := true
javaOptions ++= Seq("-Xmx4g", "-Xrunhprof:cpu=samples,depth=12")
resolvers ++= Seq(
//"Scala Tools Snapshots" at "http://scala-tools.org/repo-snapshots/",
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
)
testFrameworks += new TestFramework("org.scalameter.ScalaMeterFramework")
parallelExecution in Test := false
logBuffered := false
// NOTE: you have to disable -oDF in order for ScalaMeter to work
testOptions in Test += Tests.Argument("-oDF")
//testOptions in Test += Tests.Argument("-preJDK7")
addCompilerPlugin("org.scalamacros" %% "paradise" % "2.1.0-M1" cross CrossVersion.full)
publishMavenStyle := true
publishTo <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
pomExtra := (
<url>http://scalanlp.org/</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:dlwh/gust.git</url>
<connection>scm:git:[email protected]:dlwh/gust.git</connection>
</scm>
<developers>
<developer>
<id>dlwh</id>
<name>David Hall</name>
<url>http://www.dlwh.org/</url>
</developer>
</developers>)