-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sbt
45 lines (37 loc) · 1.43 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
import Dependencies._
name := "streams-app"
version := "0.1"
lazy val commonSettings = Seq(
scalaVersion := "2.13.6",
resolvers += "Confluent Maven Repository" at "https://packages.confluent.io/maven/"
)
lazy val root = (project in file(".")).aggregate(carDataProducer, carDataConsumer, driverNotifier, avro, domain)
lazy val carDataProducer = (project in file("car-data-producer"))
.settings(commonSettings)
.settings(
name := "car-data-producer",
libraryDependencies ++= Seq(Libs.kafkaClient, Libs.kafkaAvro, Libs.catsEffect)
)
.dependsOn(domain, avro)
lazy val carDataConsumer = (project in file("car-data-consumer"))
.settings(commonSettings)
.settings(
name := "car-data-consumer",
libraryDependencies ++= Seq(Libs.kafkaClient, Libs.kafkaAvro, Libs.catsEffect)
)
.dependsOn(domain, avro)
lazy val driverNotifier = (project in file("driver-notifier"))
.settings(commonSettings)
.settings(
name := "driver-notifier",
libraryDependencies ++= Seq(Libs.kafkaStreamsScala, Libs.kafkaStreamsAvro, Libs.avro4sKafka)
)
.dependsOn(domain, avro)
lazy val avro = (project in file("avro"))
.settings(commonSettings)
.settings(
name := "avro",
libraryDependencies ++= Seq(Libs.avro4sCore, Libs.sttp3Core, Libs.sttp3Circe, Libs.circeGeneric, Libs.smlTagging)
)
.dependsOn(domain)
lazy val domain = (project in file("domain")).settings(commonSettings)