-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
24 lines (19 loc) · 796 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
name := "scala-spark"
version := "0.1"
scalaVersion := "2.11.12"
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % "2.2.1",
"org.apache.spark" %% "spark-sql" % "2.2.1",
"org.apache.spark" %% "spark-streaming" % "2.2.1",
"org.apache.spark" %% "spark-streaming-kafka-0-8" % "2.2.1",
"org.apache.kafka" % "kafka-clients" % "0.8.2.0",
"com.datastax.spark" %% "spark-cassandra-connector" % "2.0.2"
)
ThisBuild / assemblyMergeStrategy := {
case PathList(ps @ _*) if ps.last endsWith ".class" => MergeStrategy.first
case "application.conf" => MergeStrategy.concat
case "unwanted.txt" => MergeStrategy.discard
case x =>
val oldStrategy = (ThisBuild / assemblyMergeStrategy).value
oldStrategy(x)
}