-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sc
64 lines (51 loc) · 1.68 KB
/
build.sc
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
import mill._
import mill.api.Loose
import mill.define.Target
import scalalib._
trait ZioModule extends ScalaModule {
val zioVersion : String = "1.0.1"
val amqVersion : String = "5.15.6"
override def scalaVersion = "2.13.3"
override def ivyDeps : T[Agg[Dep]] = T { super.ivyDeps() ++ Agg(
ivy"dev.zio::zio:$zioVersion".withDottyCompat(scalaVersion()),
ivy"dev.zio::zio-streams:$zioVersion".withDottyCompat(scalaVersion()),
ivy"org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1"
)}
override def scalacOptions = Seq(
"--deprecation",
"--target:8",
"-Werror",
"--feature",
Seq(
"adapted-args",
"constant",
"deprecation",
"doc-detached",
"inaccessible",
"infer-any",
"missing-interpolator",
"nullary-unit",
"option-implicit",
"poly-implicit-overload",
"stars-align",
// Compiler doesn't know it but suggests it: "Recompile with -Xlint:unchecked for details."
// "unchecked",
"unused"
).mkString("-Xlint:", ",", "")
// "--unchecked"
)}
object zioSamples extends Module {
object zioBase extends ZioModule {
override def finalMainClass : T[String] = T { "de.woq.zio.base.FirstZioApp" }
object test extends super.Tests {
override def testFrameworks = Seq("zio.test.sbt.ZTestFramework")
override def ivyDeps: Target[Loose.Agg[Dep]] = T { super.ivyDeps() ++ Agg(
ivy"dev.zio::zio-test:$zioVersion",
ivy"dev.zio::zio-test-sbt:$zioVersion",
ivy"org.apache.activemq:activemq-broker:$amqVersion",
ivy"org.apache.activemq:activemq-kahadb-store:$amqVersion",
ivy"ch.qos.logback:logback-classic:1.2.3"
)}
}
}
}