-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
35 lines (28 loc) · 1 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
val sparkVersion = "2.2.2"
val dseVersion = "6.0.7"
val kafkaVersion = "2.2.0"
val akkaVersion = "2.3.12"
val globalSettings = Seq(
version := "0.1",
scalaVersion := "2.11.8",
resolvers += ("DataStax Repo" at "https://datastax.artifactoryonline.com/datastax/public-repos/")
)
lazy val producer = (project in file("producer"))
.settings(name := "producer")
.settings(globalSettings:_*)
.settings(libraryDependencies ++= producerDeps)
lazy val consumer = (project in file("consumer"))
.settings(name := "consumer")
.settings(globalSettings:_*)
.settings(libraryDependencies ++= consumerDeps)
lazy val producerDeps = Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"org.apache.kafka" % "kafka_2.11" % kafkaVersion
exclude("javax.jms", "jms")
exclude("com.sun.jdmk", "jmxtools")
exclude("com.sun.jmx", "jmxri")
)
lazy val consumerDeps = Seq(
"com.datastax.dse" % "dse-spark-dependencies" % dseVersion % "provided",
"org.apache.spark" % "spark-sql-kafka-0-10_2.11" % sparkVersion
)