-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.sbt
44 lines (38 loc) · 1.15 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
import BuildHelper._
lazy val root = (project in file(".")).settings(
name := "tranzactio-root",
description := "ZIO wrapper for Scala DB libraries (e.g. Doobie, Anorm)",
publish / skip := true,
).aggregate(core, anorm, doobie, examples)
lazy val core = project.settings(
name := "tranzactio-core",
description := "Core classes for Tranzactio",
stdSettings,
publishSettings,
libraryDependencies ++= coreDeps,
)
lazy val anorm = project.settings(
name := "tranzactio-anorm",
description := "ZIO wrapper for Anorm",
stdSettings,
publishSettings,
libraryDependencies ++= anormDeps,
).dependsOn(core)
lazy val doobie = project.settings(
name := "tranzactio-doobie",
description := "ZIO wrapper for Doobie",
stdSettings,
publishSettings,
libraryDependencies ++= doobieDeps,
).dependsOn(core)
lazy val examples = project.settings(
stdSettings,
publish / skip := true,
).dependsOn(
// https://www.scala-sbt.org/1.x/docs/Multi-Project.html#Per-configuration+classpath+dependencies
core % "test->compile;test->test",
anorm % Test,
doobie % Test,
)
/* Makes processes is SBT cancelable without closing SBT */
Global / cancelable := true