-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
77 lines (66 loc) · 2.09 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
ThisBuild / scalaVersion := "2.13.12"
ThisBuild / resolvers += "Kognic maven repo" at "artifactregistry://europe-west1-maven.pkg.dev/annotell-com/maven-default"
lazy val commonDeps = Seq(
"com.kognic.platform" % "core-tagging" % "5.2.0",
"com.kognic.platform" % "json" % "5.2.0",
"com.kognic.platform" % "utils" % "5.2.0",
)
lazy val zioDeps = Seq(
"dev.zio" %% "zio" % "2.0.13",
"dev.zio" %% "zio-test" % "2.0.13",
"dev.zio" %% "zio-test-sbt" % "2.0.13" % Test,
"dev.zio" %% "zio-mock" % "1.0.0-RC11" % Test,
)
lazy val futureDeps = Seq(
"org.scalatest" %% "scalatest" % "3.2.18" % "test",
"org.scalamock" %% "scalamock" % "6.0.0" % Test
)
ThisBuild / scalacOptions ++= Seq(
"-Xsource:3",
"-language:implicitConversions",
"-Wunused:imports",
)
lazy val root = project
.in(file("."))
.aggregate(helloWorldZIO, helloWorldFuture, helloServiceZIO, helloServiceFuture)
lazy val helloWorldFuture = project
.in(file("hello-world-future"))
.settings(
name := "hello-world-future",
version := "0.1.0-SNAPSHOT",
libraryDependencies ++= futureDeps,
)
lazy val helloWorldZIO = project
.in(file("hello-world-zio"))
.settings(
name := "hello-world-zio",
version := "0.1.0-SNAPSHOT",
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
libraryDependencies ++= zioDeps
)
lazy val helloServiceCommon = project
.in(file("hello-service-common"))
.settings(
name := "hello-service-common",
version := "0.1.0-SNAPSHOT",
libraryDependencies ++= commonDeps
)
lazy val helloServiceZIO = project
.in(file("hello-service-zio"))
.dependsOn(helloServiceCommon)
.aggregate(helloServiceCommon)
.settings(
name := "hello-service-zio",
version := "0.1.0-SNAPSHOT",
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
libraryDependencies ++= zioDeps
)
lazy val helloServiceFuture = project
.in(file("hello-service-future"))
.dependsOn(helloServiceCommon)
.aggregate(helloServiceCommon)
.settings(
name := "hello-service-future",
version := "0.1.0-SNAPSHOT",
libraryDependencies ++= futureDeps
)