-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
37 lines (22 loc) · 1.01 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
name := "cassandra-connector-bug-demo"
version := "1.1"
scalaVersion := "2.10.5"
resolvers ++= Seq(
"Typesafe Releases" at "http://repo.typesafe.com/ typesafe/releases",
"spray repo" at "http://repo.spray.io"
)
resolvers += "spray" at "http://repo.spray.io/"
val sparkVersion = "1.2.1"
libraryDependencies += "org.apache.spark" %% "spark-streaming" % sparkVersion % "provided"
libraryDependencies += "org.apache.spark" %% "spark-core" % sparkVersion % "provided"
libraryDependencies += "com.datastax.spark" %% "spark-cassandra-connector" % "1.2.1"
run in Compile <<= Defaults.runTask(fullClasspath in Compile, mainClass in (Compile, run), runner in (Compile, run))
parallelExecution in assembly := false
assemblyOption in assembly ~= { _.copy(includeScala = false) }
assemblyOutputPath in assembly := new File("output/demo.jar")
assemblyMergeStrategy in assembly <<= (mergeStrategy in assembly) {
(old) => {
case PathList("com", "google", xs @ _*) => MergeStrategy.last
case x => old(x)
}
}