-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sbt
102 lines (87 loc) · 2.57 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
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "2.13.8"
val zioVersion = "2.0.13"
val sttpVersion = "3.7.4"
val sttpClientVersion = "3.7.4"
lazy val sharedSettings = Seq(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-test" % zioVersion % Test,
"dev.zio" %% "zio-test-sbt" % zioVersion % Test
)
)
lazy val root = (project in file("."))
.settings(
name := "working-scala"
)
lazy val `json-handling` = project
.settings(sharedSettings)
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio-json" % "0.3.0-RC10"
)
)
lazy val `bicycle_db` = project
.settings(sharedSettings)
.settings(
libraryDependencies ++= Seq(
"org.tpolecat" %% "doobie-core" % "1.0.0-RC2",
"io.github.gaelrenoux" %% "tranzactio" % "4.1.0",
"org.postgresql" % "postgresql" % "42.5.4",
"dev.zio" %% "zio-http" % "3.0.0-RC2"
)
)
lazy val `declarative-prog` = project
.settings(sharedSettings)
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio-http" % "3.0.0-RC2",
"org.tpolecat" %% "doobie-core" % "1.0.0-RC2",
"io.github.gaelrenoux" %% "tranzactio" % "4.1.0",
"org.xerial" % "sqlite-jdbc" % "3.40.1.0",
"org.postgresql" % "postgresql" % "42.5.4"
)
)
lazy val `dependency-injection` = project
.settings(sharedSettings)
lazy val `file-handling` = project
.settings(sharedSettings)
.settings(
libraryDependencies ++= Seq(
"com.lihaoyi" %% "os-lib" % "0.9.1"
)
)
lazy val `for-comprehension-in-zio` = project
.settings(sharedSettings)
.settings(testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"))
lazy val `for-comprehension-in-scala` = project
.settings(sharedSettings)
.settings(testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"))
lazy val `db-connection` = project
.settings(sharedSettings)
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio-http" % "3.0.0-RC2",
"org.tpolecat" %% "doobie-core" % "1.0.0-RC2",
"io.github.gaelrenoux" %% "tranzactio" % "4.1.0",
"org.xerial" % "sqlite-jdbc" % "3.40.1.0",
"org.postgresql" % "postgresql" % "42.5.4",
)
)
lazy val `multi-project` = project
.settings(sharedSettings)
.settings(
libraryDependencies ++= Seq(
)
)
lazy val `testing` = project
.settings(sharedSettings)
lazy val `error-handling` = project
.settings(sharedSettings)
.settings(
libraryDependencies ++= Seq(
"com.lihaoyi" %% "os-lib" % "0.9.1",
"com.lihaoyi" %% "ujson" % "3.0.0",
"dev.zio" %% "zio-json" % "0.3.0-RC10"
)
)