-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sbt
51 lines (50 loc) · 2.36 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
// Dependencies are needed for Scala Steward to check if there are newer versions
val zioVersion = "2.0.13"
val zioJsonVersion = "0.5.0"
val zioConfigVersion = "3.0.7"
val logbackClassicVersion = "1.4.7"
val postgresqlVersion = "42.6.0"
val testContainersVersion = "0.40.15"
val zioMockVersion = "1.0.0-RC11"
val zioHttpVersion = "3.0.0-RC1"
val quillVersion = "4.6.0"
// This build is for this Giter8 template.
// To test the template run `g8` or `g8Test` from the sbt session.
// See http://www.foundweekends.org/giter8/testing.html#Using+the+Giter8Plugin for more details.
lazy val root = (project in file("."))
.enablePlugins(ScriptedPlugin)
.settings(
name := "zio-scala3-quickstart",
Test / test := {
val _ = (Test / g8Test).toTask("").value
},
scriptedLaunchOpts ++= List(
"-Xms1024m",
"-Xmx1024m",
"-XX:ReservedCodeCacheSize=128m",
"-Xss2m",
"-Dfile.encoding=UTF-8",
),
resolvers += Resolver.url(
"typesafe",
url("https://repo.typesafe.com/typesafe/ivy-releases/"),
)(Resolver.ivyStylePatterns),
libraryDependencies ++= Seq(
"io.getquill" %% "quill-jdbc-zio" % quillVersion,
"org.postgresql" % "postgresql" % postgresqlVersion,
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-streams" % zioVersion,
"dev.zio" %% "zio-http" % zioHttpVersion,
"dev.zio" %% "zio-config" % zioConfigVersion,
"dev.zio" %% "zio-config-typesafe" % zioConfigVersion,
"ch.qos.logback" % "logback-classic" % logbackClassicVersion,
"dev.zio" %% "zio-json" % zioJsonVersion,
"dev.zio" %% "zio-test" % zioVersion,
"dev.zio" %% "zio-test-sbt" % zioVersion,
"dev.zio" %% "zio-test-junit" % zioVersion,
"dev.zio" %% "zio-mock" % zioMockVersion,
"com.dimafeng" %% "testcontainers-scala-postgresql" % testContainersVersion,
"dev.zio" %% "zio-test-magnolia" % zioVersion,
),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")),
)