forked from ScalaConsultants/zio-fundamentals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
63 lines (58 loc) · 1.62 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
53
54
55
56
57
58
59
60
61
62
63
val ZIOVersion = "2.0.2"
lazy val root = project
.in(file("."))
.settings(
name := "zio-fundamentals",
organization := "net.degoes",
scalaVersion := "2.13.8",
initialCommands in Compile in console :=
"""|import zio._
|implicit class RunSyntax[E, A](io: ZIO[Any, E, A]){ def run: A = Unsafe.unsafe { implicit u => Runtime.default.unsafe.run(io).getOrThrowFiberFailure() } }
""".stripMargin
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias(
"check",
"all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck"
)
libraryDependencies ++= Seq(
// ZIO
"dev.zio" %% "zio" % ZIOVersion,
"dev.zio" %% "zio-streams" % ZIOVersion,
"dev.zio" %% "zio-test" % ZIOVersion % "test",
"dev.zio" %% "zio-test-sbt" % ZIOVersion % "test",
// URL parsing
"io.lemonlabs" %% "scala-uri" % "4.0.2"
)
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
scalacOptions in Compile in console := Seq(
"-Ypartial-unification",
"-language:higherKinds",
"-language:existentials",
"-Yno-adapted-args",
"-Xsource:2.13",
"-Yrepl-class-based",
"-deprecation",
"-encoding",
"UTF-8",
"-explaintypes",
"-Yrangepos",
"-feature",
"-Xfuture",
"-unchecked",
"-Xlint:_,-type-parameter-shadow",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-opt-warnings",
"-Ywarn-extra-implicit",
"-Ywarn-unused:_,imports",
"-Ywarn-unused:imports",
"-opt:l:inline",
"-opt-inline-from:<source>",
"-Ypartial-unification",
"-Yno-adapted-args",
"-Ywarn-inaccessible",
"-Ywarn-infer-any",
"-Ywarn-nullary-override",
"-Ywarn-nullary-unit"
)