-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
54 lines (50 loc) · 2.01 KB
/
build.sbt
File metadata and controls
54 lines (50 loc) · 2.01 KB
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
ThisBuild / scalaVersion := "3.8.2"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / organization := "com.dpratt747"
ThisBuild / organizationName := "dpratt747"
lazy val zioVersion = "2.1.24"
lazy val zioHttpVersion = "3.0.1"
lazy val zioJsonVersion = "0.7.45"
lazy val zioJdbcVersion = "0.1.2"
lazy val zioConfigVersion = "4.0.7"
lazy val testContainerScalaVersion = "0.44.1"
lazy val flywayVersion = "12.1.1"
lazy val postgresDriverVersion = "42.7.10"
lazy val h2Version = "2.4.240"
lazy val chimneyVersion = "1.9.0"
lazy val ironVersion = "3.3.0"
lazy val izumiReflectVersion = "3.0.9"
lazy val root = (project in file("."))
.settings(
name := "zio-app-example-scala3",
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-http" % zioHttpVersion,
"dev.zio" %% "zio-json" % zioJsonVersion,
"dev.zio" %% "zio-jdbc" % zioJdbcVersion,
"dev.zio" %% "zio-config" % zioConfigVersion,
"dev.zio" %% "zio-config-magnolia" % zioConfigVersion,
"dev.zio" %% "zio-config-typesafe" % zioConfigVersion,
"org.postgresql" % "postgresql" % postgresDriverVersion,
"org.flywaydb" % "flyway-database-postgresql" % flywayVersion,
"io.scalaland" %% "chimney" % chimneyVersion,
"io.github.iltotore" %% "iron" % ironVersion,
"dev.zio" %% "izumi-reflect" % izumiReflectVersion
) ++ testDependencies,
scalacOptions ++= Seq("-Yretain-trees"),
resolvers += Resolver.sonatypeCentralSnapshots,
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")
)
lazy val integration = (project in file("integration"))
.dependsOn(root)
.settings(
publish / skip := true,
libraryDependencies ++= testDependencies
)
lazy val testDependencies = Seq(
"dev.zio" %% "zio-test" % zioVersion % Test,
"dev.zio" %% "zio-test-sbt" % zioVersion % Test,
"dev.zio" %% "zio-test-magnolia" % zioVersion % Test,
"com.h2database" % "h2" % h2Version % Test,
"com.dimafeng" %% "testcontainers-scala-postgresql" % testContainerScalaVersion % Test
)