-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
executable file
·42 lines (31 loc) · 1.31 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
name := "express-D"
version := "0.1"
organization := "math.mcb.berkeley.edu"
libraryDependencies += "org.clapper" % "argot_2.9.2" % "0.4"
libraryDependencies += "net.sf.jopt-simple" % "jopt-simple" % "4.5"
libraryDependencies += "org.scalatest" % "scalatest_2.9.2" % "1.8" % "test"
libraryDependencies += "com.google.guava" % "guava" % "14.0.1"
libraryDependencies += "it.unimi.dsi" % "fastutil" % "7.0.8"
unmanagedJars in Compile <++= baseDirectory map { base =>
val pathToSpark = System.getenv("SPARK_HOME")
val finder: PathFinder = (file(pathToSpark)) ** "*.jar"
print ("finder: " + finder)
finder.get
}
test in assembly := {}
jarName in assembly := "express-D-assembly.jar"
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
case PathList("META-INF", xs @ _*) =>
(xs.map(_.toLowerCase)) match {
case ("manifest.mf" :: Nil) => MergeStrategy.discard
// Note(harvey): this to get Shark perf test assembly working.
case ("license" :: Nil) => MergeStrategy.discard
case ps @ (x :: xs) if ps.last.endsWith(".sf") => MergeStrategy.discard
case _ => MergeStrategy.first
}
case PathList("reference.conf", xs @ _*) => MergeStrategy.concat
case PathList("application.conf", xs @ _*) => MergeStrategy.concat
case _ => MergeStrategy.first
}
}