-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
81 lines (70 loc) · 1.98 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
72
73
74
75
76
77
78
79
80
81
name := "kafka-integration-patterns"
import org.scalafmt.sbt.ScalafmtPlugin.autoImport._
import Common._
inThisBuild(
Seq(
version in ThisBuild := "1.0",
organization in ThisBuild := "com.paro",
scalaVersion in ThisBuild := "2.12.6",
parallelExecution := false,
scalafmtOnCompile := true
)
)
lazy val global = project
.in(file("."))
.aggregate(
models,
csvToKafka,
csvToJson,
csvToES,
kafkaToES
)
lazy val models = project.
in(file("models")).
settings(commonSettings)
.settings(libraryDependencies ++= circeDependencies)
lazy val csvToKafka = project.
in(file("cvs-to-kafka"))
.enablePlugins(ProjectAppPackager)
.settings(commonSettings)
.settings(
name:="csv-to-kafka"
)
.settings(libraryDependencies ++= Seq(
"com.lightbend.akka" %% "akka-stream-alpakka-csv" % "0.20"
) ++ akkaStreamDependencies ++ kamonDependencies
).dependsOn(models)
lazy val csvToJson = project.
in(file("cvs-to-json"))
.enablePlugins(ProjectAppPackager)
.settings(commonSettings)
.settings(
name:="csv-to-json"
)
.settings(libraryDependencies ++= Seq(
"com.lightbend.akka" %% "akka-stream-alpakka-csv" % "0.20"
) ++ akkaStreamDependencies ++ kamonDependencies
).dependsOn(models)
lazy val kafkaToES = project
.in(file("kafka-to-es"))
.enablePlugins(ProjectAppPackager)
.settings(commonSettings)
.settings(
name:="kafka-to-es"
)
.settings(libraryDependencies ++= Seq(
"com.lightbend.akka" %% "akka-stream-alpakka-elasticsearch" % "0.20"
) ++ akkaStreamDependencies ++ kamonDependencies
).dependsOn(models)
lazy val csvToES = project
.in(file("csv-to-es"))
.enablePlugins(ProjectAppPackager)
.settings(commonSettings)
.settings(
name:="csv-to-es"
)
.settings(libraryDependencies ++= Seq(
"com.lightbend.akka" %% "akka-stream-alpakka-csv" % "0.20",
"com.lightbend.akka" %% "akka-stream-alpakka-elasticsearch" % "0.20"
) ++ akkaStreamDependencies ++ kamonDependencies
).dependsOn(models)