-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
50 lines (46 loc) · 1.54 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
ThisBuild / scalaVersion := "3.3.1"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / organization := "com.wenhoujx"
ThisBuild / organizationName := "example"
val slf4jVersion = "1.7.36" // logging framework
val zioHttpVersion = "3.0.0-RC4" // HTTP client library for ZIO
val zioJsonVersion = "0.6.2" // JSON serialization library for ZIO
val zioLoggingVersion = "2.0.0-RC10" // logging library for ZIO
val zioVersion =
"2.1-RC1" // Scala library for asynchronous and concurrent programming
Global / onChangedBuildSource := ReloadOnSourceChanges
val sharedSettings = Seq(
libraryDependencies ++= Seq(
"dev.zio" %% "zio-json" % zioJsonVersion,
"dev.zio" %% "zio-test" % zioVersion % Test,
"dev.zio" %% "zio-test-sbt" % zioVersion % Test
),
Test / fork := true,
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"utf8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
)
)
lazy val root = project
.in(file("."))
.settings(
name := "zio-simple-rest-app",
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-macros" % zioVersion,
"dev.zio" %% "zio-http" % zioHttpVersion,
"dev.zio" %% "zio-logging-slf4j" % zioLoggingVersion,
"org.slf4j" % "slf4j-api" % slf4jVersion,
"org.slf4j" % "slf4j-simple" % slf4jVersion
)
)
.enablePlugins(JavaAppPackaging)
.settings(sharedSettings)