-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
36 lines (33 loc) · 1.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
ThisBuild / scalaVersion := "3.2.2"
name := "zio-coffee-shop"
val ZioVersion = "2.0.6"
val ZioJsonVersion = "0.4.2"
val ZioHttpVersion = "0.0.4"
val ZioLoggingVersion = "2.1.8"
val ZioPreludeVersion = "1.0.0-RC16"
val ZioMetricsConnectorsVersion = "2.0.5"
val deps = Seq(
"dev.zio" %% "zio" % ZioVersion,
"dev.zio" %% "zio-http" % ZioHttpVersion,
"dev.zio" %% "zio-json" % ZioJsonVersion,
"dev.zio" %% "zio-logging" % ZioLoggingVersion,
"dev.zio" %% "zio-prelude" % ZioPreludeVersion,
"dev.zio" %% "zio-metrics-connectors" % ZioMetricsConnectorsVersion,
"dev.zio" %% "zio-test" % ZioVersion % Test,
"dev.zio" %% "zio-test-sbt" % ZioVersion % Test
)
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")
lazy val barista = (project in file("barista"))
.settings(libraryDependencies ++= deps)
.dependsOn(eventjournal)
lazy val coffeeshop = (project in file("coffeeshop"))
.settings(libraryDependencies ++= deps)
.dependsOn(barista, eventjournal, beans, orders)
lazy val eventjournal = (project in file("eventjournal"))
.settings(libraryDependencies ++= deps)
lazy val beans = (project in file("beans"))
.settings(libraryDependencies ++= deps)
.dependsOn(eventjournal)
lazy val orders = (project in file("orders"))
.settings(libraryDependencies ++= deps)
.dependsOn(eventjournal)