-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
133 lines (124 loc) · 3.24 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
import Dependencies._
import Settings.{fqClassNameFrom, sbtSettings, ProjectSyntax}
sbtSettings
lazy val `notifications-engine` =
project
.root("notifications-engine")
.aggregate(
`kafka-clients`,
models,
`models-avro`,
`models-ciris`,
`models-json`,
`notifications-dispatcher`,
`notifications-gateway`,
)
lazy val `notifications-dispatcher` =
project
.application("notifications-dispatcher")
.dependsOn(
`kafka-clients` % "test->test;compile->compile",
models % "test->test;compile->compile",
`models-avro`,
`models-ciris`,
`models-json`,
)
.mainDependencies(
catsCore,
catsEffect,
catsEffectKernel,
catsEffectStd,
ciris,
fs2Core,
fs2kafka,
ip4sCore,
log4catsCore,
log4catsSlf4j,
)
.runtimeDependencies(log4jApi, log4jCore, log4jSlf4jImpl)
.testDependencies(
munit,
munitCatsEffect,
munitScalacheck,
scalacheckEffect,
scalacheckEffectMunit,
)
.settings(Compile / mainClass := fqClassNameFrom("NotificationsDispatcherApp"))
lazy val `notifications-gateway` =
project
.application("notifications-gateway")
.dependsOn(
`kafka-clients` % "test->test;compile->compile",
models % "test->test;compile->compile",
`models-avro`,
`models-ciris`,
`models-json`,
)
.mainDependencies(
caseInsensitive,
catsCore,
catsEffect,
catsEffectKernel,
circeCore,
ciris,
fs2Core,
fs2kafka,
http4sCirce,
http4sCore,
http4sDsl,
http4sEmberServer,
http4sServer,
ip4sCore,
log4catsCore,
log4catsSlf4j,
)
.runtimeDependencies(log4jApi, log4jCore, log4jSlf4jImpl)
.testDependencies(
fs2kafkaVulcanTestkitMunit,
munit,
munitCatsEffect,
munitScalacheck,
scalacheckEffect,
scalacheckEffectMunit,
)
.settings(Compile / mainClass := fqClassNameFrom("NotificationsGatewayApp"))
lazy val `kafka-clients` = project
.library("kafka-clients")
.dependsOn(models % "test->test;compile->compile", `models-avro`)
.mainDependencies(
avro,
catsCore,
catsEffect,
catsEffectKernel,
fs2kafka,
fs2kafkaVulcan,
schemaRegistryClient,
vulcan,
)
.testDependencies(
fs2kafkaVulcanTestkitMunit,
log4jApi,
log4jCore,
log4jSlf4jImpl,
munit,
munitCatsEffect,
munitScalacheck,
scalacheckEffect,
scalacheckEffectMunit,
)
lazy val models =
project.library("models").mainDependencies(catsCore, ip4sCore).testDependencies(munit, scalacheck)
lazy val `models-avro` = project
.library("models-avro")
.dependsOn(models % "test->test;compile->compile")
.mainDependencies(avro, catsCore, catsFree, catsKernel, ip4sCore, vulcan)
.testDependencies(log4jApi, log4jCore, log4jSlf4jImpl, munit, munitScalacheck)
lazy val `models-ciris` = project
.library("models-ciris")
.dependsOn(models % "test->test;compile->compile")
.mainDependencies(catsCore, ciris)
lazy val `models-json` = project
.library("models-json")
.dependsOn(models % "test->test;compile->compile")
.mainDependencies(catsCore, circeCore, circeGeneric, ip4sCore)
.testDependencies(circeParser, munit)