-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
99 lines (91 loc) · 2.38 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
import sbt.Keys.libraryDependencies
import Dependencies.{lagomScaladslAkkaDiscovery, _}
import Settings._
lazy val `book-shelf` = (project in file("."))
.aggregate(`book-api`, `book-impl`, `recommendation-api`, `recommendation-impl`, `graphql-gateway`, lib)
lazy val lib = (project in file("lib"))
.settings(
libraryDependencies ++= Seq(
logstage,
logback,
scalaLogger,
commonsLang,
zio
)
)
lazy val `book-api` = (project in file("book-api"))
.settings(
libraryDependencies ++= Seq(
lagomScaladslApi,
playJsonDerivedCodecs,
cats
)
)
lazy val `book-impl` = (project in file("book-impl"))
.enablePlugins(LagomScala)
.enablePlugins(DockerPlugin, JavaAppPackaging)
.settings(
libraryDependencies ++= Seq(
lagomScaladslPersistenceCassandra,
lagomScaladslKafkaBroker,
lagomScaladslTestKit,
pureconfig,
chimney,
macwire,
scalaTest,
lagomScaladslAkkaDiscovery,
akkaDiscoveryKubernetesApi
)
)
.settings(lagomForkedTestSettings)
.settings(commonSettings ++ dockerSettings ++ grpcSettings)
.dependsOn(`book-api`, lib)
lazy val `recommendation-api` = (project in file("recommendation-api"))
.settings(
libraryDependencies ++= Seq(
lagomScaladslApi,
cats
)
)
lazy val `recommendation-impl` = (project in file("recommendation-impl"))
.enablePlugins(LagomScala)
.enablePlugins(DockerPlugin, JavaAppPackaging)
.settings(
libraryDependencies ++= Seq(
lagomScaladslKafkaClient,
lagomScaladslTestKit,
macwire,
elastic4s,
esjava,
esZio,
esCirce,
pureconfig,
scalaTest,
lagomScaladslAkkaDiscovery,
akkaDiscoveryKubernetesApi
)
)
.settings(lagomForkedTestSettings)
.settings(commonSettings ++ dockerSettings ++ grpcSettings)
.dependsOn(`recommendation-api`, `book-api`, lib)
lazy val `graphql-gateway` = (project in file("graphql-gateway"))
.enablePlugins(JavaAppPackaging, DockerPlugin)
.settings(
libraryDependencies ++= Seq(
http4s,
http4sCirce,
http4sDsl,
catz,
chimney,
pureconfig,
circe,
circeOptics,
caliban,
calibanHttp4s,
lagomScaladslAkkaDiscovery,
akkaDiscoveryKubernetesApi
)
)
.settings(commonSettings ++ grpcSettings)
.dependsOn(lib)
//lagomServiceLocatorEnabled in ThisBuild := false