-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
47 lines (41 loc) · 1.2 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
import Dependencies._
ThisBuild / organization := "com.estebanmarin"
ThisBuild / scalaVersion := "3.0.2"
ThisBuild / scalacOptions ++=
Seq(
"-deprecation",
"-feature",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Yexplicit-nulls", // experimental (I've seen it cause issues with circe)
"-Ykind-projector",
"-Ysafe-init", // experimental (I've seen it cause issues with circe)
) ++ Seq("-rewrite", "-indent") ++ Seq("-source", "future")
lazy val `zioscala3` =
project
.in(file("."))
.settings(name := "zioScala3")
.settings(commonSettings)
.settings(dependencies)
lazy val commonSettings = commonScalacOptions ++ Seq(
update / evictionWarningOptions := EvictionWarningOptions.empty
)
lazy val commonScalacOptions = Seq(
Compile / console / scalacOptions --= Seq(
"-Wunused:_",
"-Xfatal-warnings",
),
Test / console / scalacOptions :=
(Compile / console / scalacOptions).value,
)
lazy val dependencies = Seq(
libraryDependencies ++= Seq(
// main dependencies
"dev.zio" %% "zio" % "1.0.11"
),
libraryDependencies ++= Seq(
org.scalatest.scalatest,
org.scalatestplus.`scalacheck-1-15`,
).map(_ % Test),
)