forked from jdegoes/functional-effects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
64 lines (59 loc) · 1.61 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
64
val ZIOVersion = "2.0.0-M2"
lazy val root = project
.in(file("."))
.settings(
name := "functional-effects",
organization := "net.degoes",
scalaVersion := "2.12.11",
initialCommands in Compile in console :=
"""|import zio._
|import zio.Console._
|implicit class RunSyntax[E, A](io: ZIO[ZEnv, E, A]){ def unsafeRun: A = Runtime.default.unsafeRun(io) }
""".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" % "1.4.1"
)
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"
)