-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
52 lines (47 loc) · 1.88 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
val tapirVersion = "1.11.11"
val zioVersion = "2.1.14"
val zioConfigVersion = "4.0.2"
val zioLoggingVersion = "2.4.0"
lazy val rootProject = (project in file(".")).settings(
Seq(
name := "zio-tapir-example",
version := "0.1.0-SNAPSHOT",
organization := "com.lvitaly.api",
scalaVersion := "3.3.4",
libraryDependencies ++= tapirKit ++ zioKit ++ basicKit,
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)
)
lazy val tapirKit = Seq(
"com.softwaremill.sttp.tapir" %% "tapir-zio-http-server" % tapirVersion,
"com.softwaremill.sttp.tapir" %% "tapir-prometheus-metrics" % tapirVersion,
"com.softwaremill.sttp.tapir" %% "tapir-swagger-ui-bundle" % tapirVersion,
"com.softwaremill.sttp.tapir" %% "tapir-json-zio" % tapirVersion,
"com.softwaremill.sttp.tapir" %% "tapir-sttp-stub-server" % tapirVersion % Test,
"com.softwaremill.sttp.client3" %% "zio-json" % "3.10.1" % Test
)
lazy val zioKit = Seq(
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-streams" % zioVersion,
"dev.zio" %% "zio-logging" % zioLoggingVersion,
"dev.zio" %% "zio-logging-slf4j" % zioLoggingVersion,
"dev.zio" %% "zio-config" % zioConfigVersion,
"dev.zio" %% "zio-config-magnolia" % zioConfigVersion,
"dev.zio" %% "zio-config-typesafe" % zioConfigVersion,
"dev.zio" %% "zio-test" % zioVersion % Test,
"dev.zio" %% "zio-test-sbt" % zioVersion % Test
)
lazy val basicKit = Seq(
"ch.qos.logback" % "logback-classic" % "1.5.15"
)
lazy val revolverSettings = Revolver.settings ++ Seq(
reStart / mainClass := Some("com.lvitaly.api.Main"),
reStart / javaOptions ++= Seq(
"-Xmx1g",
"-Xms1g",
"-Xss8m"
// "-Duser.timezone=UTC",
),
reStart / envVars := Map(),
Revolver.enableDebugging(port = 5005, suspend = false)
)