-
Notifications
You must be signed in to change notification settings - Fork 87
/
build.sbt
38 lines (30 loc) · 1.28 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
import AssemblyKeys._
name := "kafka-exactly-once"
scalaVersion := "2.11.7"
version := "2.1.2"
val sparkVersion = "2.1.2"
externalResolvers ++= Seq(
"Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository"
)
libraryDependencies ++= Seq(
("org.apache.spark" %% "spark-core" % sparkVersion % "provided").
exclude("org.apache.spark", "spark-network-common_2.11").
exclude("org.apache.spark", "spark-network-shuffle_2.11"),
// avoid an ivy bug
"org.apache.spark" %% "spark-network-common" % sparkVersion % "provided",
"org.apache.spark" %% "spark-network-shuffle" % sparkVersion % "provided",
("org.apache.spark" %% "spark-streaming" % sparkVersion % "provided").
exclude("org.apache.spark", "spark-core_2.11"),
("org.apache.spark" %% "spark-streaming-kafka-0-10" % sparkVersion).
exclude("org.apache.spark", "spark-core_2.11"),
("org.scalikejdbc" %% "scalikejdbc" % "2.2.1").
exclude("org.slf4j", "slf4j-api"),
("org.postgresql" % "postgresql" % "9.3-1101-jdbc4").
exclude("org.slf4j", "slf4j-api"),
"com.typesafe" % "config" % "1.2.1"
)
assemblySettings
mergeStrategy in assembly := {
case PathList("org", "apache", "spark", "unused", "UnusedStubClass.class") => MergeStrategy.first
case x => (mergeStrategy in assembly).value(x)
}