-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
49 lines (33 loc) · 1.27 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
import AssemblyKeys._ // put this at the top of the file
name := "SampleProject"
organization := "com.example"
version := "0.0.1-SNAPSHOT"
scalaVersion := "2.9.3"
resolvers ++= Seq(
"Akka Repository" at "http://repo.akka.io/releases/",
"Spray Repository" at "http://repo.spray.cc/",
"snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
"releases" at "http://oss.sonatype.org/content/repositories/releases"
)
libraryDependencies ++= {
Seq(
"org.scalatest" %% "scalatest" % "1.9.1" % "test",
"org.json4s" %% "json4s-native" % "3.2.2",
"org.apache.spark" %% "spark-core" % "0.8.0-incubating" % "provided",
"com.typesafe" % "config" % "0.3.1"
)
}
//fork in run := true
runMain in Compile <<= Defaults.runMainTask(fullClasspath in Compile, runner in (Compile, run))
run in Compile <<= Defaults.runTask(fullClasspath in Compile, mainClass in (Compile, run), runner in (Compile, run))
assemblySettings
assembleArtifact in packageScala := false
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
case PathList("org", "w3c", xs @ _*) => MergeStrategy.first
case "about.html" => MergeStrategy.discard
case "log4j.properties" => MergeStrategy.concat
case x => old(x)
}
}
test in assembly := {}