-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
25 lines (19 loc) · 851 Bytes
/
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
name := "web-stat"
version := "0.1"
scalaVersion := "2.11.8"
// Use cached dependencies to avoid re-downloading every time
updateOptions := updateOptions.value.withCachedResolution(true)
// In case of using `sbt assembly` to bring dependencies in a fat jar:
// Exclude Scala
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)
// Merge strategy
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}
val sparkVersion = "2.3.0"
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % sparkVersion % Provided, // excluded from fat jar
"org.apache.spark" %% "spark-sql" % sparkVersion % Provided, // excluded from fat jar
"org.apache.spark" %% "spark-sql-kafka-0-10" % sparkVersion // included in fat jar
)