-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
executable file
·47 lines (37 loc) · 1.66 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
import sbt._
import Keys._
resolvers ++= Seq(
"apache-snapshots" at "http://repository.apache.org/snapshots/",
"Spark Packages Repo" at "https://dl.bintray.com/spark-packages/maven"
)
name := "mitosis-microservice-spark-cassandra"
organization := "com.mitosis"
version := "1.0.0-alpha.0"
scalaVersion := "2.11.11"
val sparkVersion = "2.2.0"
val jacksonVersion = "2.6.5"
val cassandraVersion = "2.0.5"
val typesafeVersion = "1.3.0"
val log4jVersion = "1.2.14"
libraryDependencies ++= Seq(
"log4j" % "log4j" % log4jVersion,
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided",
("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"),
"com.datastax.spark" %% "spark-cassandra-connector" % cassandraVersion,
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion,
"com.fasterxml.jackson.core" % "jackson-core" % jacksonVersion,
"com.typesafe" % "config" % typesafeVersion
)
assemblyMergeStrategy in assembly := {
case PathList("org", "apache", "spark", "unused", "UnusedStubClass.class") => MergeStrategy.first
case x => (assemblyMergeStrategy in assembly).value(x)
}