-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
64 lines (51 loc) · 1.83 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
scalaVersion := "2.13.3"
name := "gateway"
organization := "de.hsma.scala"
version := "0.1"
run / fork := true
PB.targets in Compile := Seq(
scalapb.gen(grpc = true) -> (sourceManaged in Compile).value,
scalapb.zio_grpc.ZioCodeGenerator -> (sourceManaged in Compile).value,
)
assemblyMergeStrategy in assembly := {
case x if x.contains("io.netty.versions.properties") => MergeStrategy.discard
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
val zioVersion = "1.0.3"
val zio = Seq(
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-streams" % zioVersion,
)
val zio_nio = Seq(
"dev.zio" %% "zio-nio" % "1.0.0-RC10",
"dev.zio" %% "zio-nio-core" % "1.0.0-RC10",
)
val zio_grpc = Seq(
"io.grpc" % "grpc-netty" % "1.33.1", // 1.31.1
"com.thesamet.scalapb" %% "scalapb-runtime-grpc" % scalapb.compiler.Version.scalapbVersion,
)
val newtype = Seq(
"io.estatico" %% "newtype" % "0.4.4",
)
val spec = Seq(
"dev.zio" %% "zio-test" % zioVersion % "test",
"dev.zio" %% "zio-test-sbt" % zioVersion % "test",
)
libraryDependencies ++= zio ++ zio_nio ++ zio_grpc ++ newtype ++ spec
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")
scalacOptions ++= Seq(
"-target:jvm-1.11",
"-encoding", "UTF-8", // Specify character encoding used by source files.
"-unchecked", // Enable additional warnings where generated code depends on assumptions.
"-deprecation",
"-explaintypes", // Explain type errors in more detail
"-language:higherKinds", // Allow higher-kinded types
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Ywarn-unused",
"-Ymacro-annotations", // required for NewType in 2.12.1+
"-language:implicitConversions" // used to e.g. extend the PublisherResponse object
)