-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.sbt
61 lines (43 loc) · 1.6 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
import AssemblyKeys._ // put this at the top of the file
organization := "org.scalanlp"
name := "puck"
version := "0.2"
scalaVersion := "2.10.3"
libraryDependencies ++= Seq(
"junit" % "junit" % "4.5" % "test",
"org.scalanlp" %% "epic" % "0.2",
"org.scalatest" %% "scalatest" % "2.0.M5b" % "test",
"com.nativelibs4java" % "javacl" % "1.0-SNAPSHOT"
)
libraryDependencies += "com.jsuereth" %% "scala-arm" % "1.3"
fork := true
javaOptions ++= Seq("-Xmx12g", "-Xrunhprof:cpu=samples,depth=12")
//javaOptions ++= Seq("-Xmx12g")
resolvers ++= Seq(
"Scala Tools Snapshots" at "http://scala-tools.org/repo-snapshots/",
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
)
assemblySettings
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
case PathList("META-INF", xs @ _*) =>
(xs map {_.toLowerCase}) match {
case ("manifest.mf" :: Nil) | ("index.list" :: Nil) | ("dependencies" :: Nil) =>
MergeStrategy.discard
case ps @ (x :: xs) if ps.last.endsWith(".sf") || ps.last.endsWith(".dsa") =>
MergeStrategy.discard
case "plexus" :: xs =>
MergeStrategy.discard
case "services" :: xs =>
MergeStrategy.filterDistinctLines
case ("spring.schemas" :: Nil) | ("spring.handlers" :: Nil) =>
MergeStrategy.filterDistinctLines
case _ => MergeStrategy.first
}
case x => MergeStrategy.first
}
}
excludedJars in assembly <<= (fullClasspath in assembly) map { cp =>
cp filter {_.data.getName.contains("dx-")}
}
testOptions in Test += Tests.Argument("-oDF")