-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.sbt
63 lines (56 loc) · 2.31 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
val ZioVersion = "2.0.2"
val ZioJsonVersion = "0.3.0-RC11"
val ZioHttpVersion = "2.0.0-RC11"
val ZioConfigVersion = "3.0.2"
val ZioSchemaVersion = "0.2.1"
val ZioLoggingVersion = "2.1.0"
val ZioMetricsConnectors = "2.0.0"
val ScalikeVersion = "4.0.0"
val H2Version = "2.1.210"
val LogbackVersion = "1.2.3"
ThisBuild / organization := "net.degoes"
ThisBuild / version := "0.1.0"
ThisBuild / scalaVersion := "2.13.8"
ThisBuild / description := "The workshop material for Advanced Functional Design"
ThisBuild / developers := List(
Developer(
"jdegoes",
"John De Goes",
"@jdegoes",
url("https://github.com/jdegoes")
)
)
addCommandAlias("fmt", "all root/scalafmtSbt root/scalafmtAll")
addCommandAlias("check", "all root/scalafmtSbtCheck root/scalafmtCheckAll")
scalacOptions in ThisBuild ++= Seq("-deprecation", "-feature")
lazy val root = project
.in(file("."))
.settings(
publish / skip := true,
console := (core / Compile / console).value
)
.aggregate(core)
lazy val commonDeps = libraryDependencies ++= Seq(
"dev.zio" %% "zio" % ZioVersion,
"dev.zio" %% "zio-json" % ZioJsonVersion,
"io.d11" %% "zhttp" % ZioHttpVersion,
"dev.zio" %% "zio-config" % ZioConfigVersion,
"dev.zio" %% "zio-schema" % ZioSchemaVersion,
"dev.zio" %% "zio-schema-derivation" % ZioSchemaVersion,
"dev.zio" %% "zio-schema-protobuf" % ZioSchemaVersion,
"dev.zio" %% "zio-logging" % ZioLoggingVersion,
"dev.zio" %% "zio-logging-slf4j" % ZioLoggingVersion,
"dev.zio" %% "zio-metrics-connectors" % ZioMetricsConnectors,
"org.scalikejdbc" %% "scalikejdbc" % ScalikeVersion,
"com.h2database" % "h2" % H2Version,
"ch.qos.logback" % "logback-classic" % LogbackVersion,
// "io.d11" %% "zhttp-test" % ZioHttpVersion % Test,
"dev.zio" %% "zio-test" % ZioVersion % Test,
"dev.zio" %% "zio-test-sbt" % ZioVersion % Test
)
lazy val core = (project in file("core"))
.settings(
name := "core",
commonDeps,
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)