-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
71 lines (58 loc) · 3.42 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import Dependencies._
scalaVersion in ThisBuild := "2.11.8"
// scalaVersion in ThisBuild := "2.12.4"
scalacOptions in ThisBuild := Seq("-Xexperimental", "-unchecked", "-deprecation", "-feature")
javaOptions in ThisBuild := Seq("Xlint:unchecked")
lazy val protobufs = (project in file("./protobufs"))
.settings(
PB.targets in Compile := Seq(
PB.gens.java -> (sourceManaged in Compile).value,
scalapb.gen(javaConversions=true) -> (sourceManaged in Compile).value
)
)
lazy val client = (project in file("./client"))
.settings(libraryDependencies ++= Seq(Dependencies.kafka, Dependencies.curator))
.dependsOn(protobufs, configuration)
lazy val model = (project in file("./model"))
.settings(libraryDependencies ++= Dependencies.modelsDependencies)
.dependsOn(protobufs)
lazy val kafkaStreamsModelServerInMemoryStore = (project in file("./kafkaStreamsModelServerInMemoryStore"))
.settings(dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-core" % "2.9.1",
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % "2.9.1"
)
.settings(libraryDependencies ++= Seq(Dependencies.kafkastreams) ++ Dependencies.webDependencies ++ Dependencies.akkHTTPPSupport)
.dependsOn(model, configuration)
lazy val kafkaStreamsModelServerKVStore = (project in file("./kafkaStreamsModelServerKVStore"))
.settings(dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-core" % "2.9.1",
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % "2.9.1"
)
.settings(libraryDependencies ++= Seq(Dependencies.kafkastreams, Dependencies.kafkastreamsScala) ++ Dependencies.webDependencies ++ Dependencies.akkHTTPPSupport)
.dependsOn(model, configuration)
lazy val kafkaStreamsModelServerCustomStore = (project in file("./kafkaStreamsModelServerCustomStore"))
.settings(dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-core" % "2.9.1",
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % "2.9.1"
)
.settings(libraryDependencies ++= Seq(Dependencies.kafkastreams, Dependencies.kafkastreamsScala) ++ Dependencies.webDependencies ++ Dependencies.akkHTTPPSupport)
.dependsOn(model, configuration)
lazy val akkaStreamsCustomStage = (project in file("./akkaStreamsCustomStage"))
.settings(dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-core" % "2.9.1",
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % "2.9.1"
)
.settings(libraryDependencies ++= Dependencies.kafkabaseDependencies ++ Dependencies.akkaServerDependencies
++ Dependencies.modelsDependencies)
.dependsOn(model, configuration)
lazy val akkaActorsPersistent = (project in file("./akkaActorsPersistent"))
.settings(dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-core" % "2.9.1",
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % "2.9.1"
)
.settings(libraryDependencies ++= Dependencies.kafkabaseDependencies ++ Dependencies.akkaServerDependencies
++ Dependencies.modelsDependencies)
.dependsOn(model, configuration)
lazy val configuration = (project in file("./configuration"))
lazy val akkaKafkaTutorial = (project in file(".")).
aggregate(protobufs, client, model, configuration,
kafkaStreamsModelServerCustomStore,
kafkaStreamsModelServerInMemoryStore,
kafkaStreamsModelServerKVStore,
akkaStreamsCustomStage,
akkaActorsPersistent)