-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.mill
57 lines (47 loc) · 1.38 KB
/
build.mill
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
package build
import mill._, scalalib._
object `package` extends RootModule {
object core extends ScalaModule {
def scalaVersion = settings.scalaVersion
def scalacOptions = settings.scalaOptions
override def sources: T[Seq[PathRef]] = Task.Sources {
Seq(PathRef(T.workspace / "src" / "core"))
}
def ivyDeps = Agg(
ivy"dev.soundness:contingency-core:0.24.0"
)
}
object test extends ScalaModule {
def scalaVersion = settings.scalaVersion
def scalacOptions = settings.scalaOptions
override def sources: T[Seq[PathRef]] = Task.Sources {
Seq(PathRef(T.workspace / "src" / "test"))
}
def moduleDeps = Seq(core)
}
}
object settings {
val scalaVersion = "3.5.2"
val scalaOptions = Seq(
"-experimental",
"-new-syntax",
"-feature",
"-deprecation",
"-Wunused:imports",
"-Wimplausible-patterns",
"-Wsafe-init",
"-Yrequire-targetName",
"-Ycc-new",
"-Yexplicit-nulls",
"-Ycheck-all-patmat",
"-language:experimental.clauseInterleaving",
"-language:experimental.modularity",
"-language:experimental.genericNumberLiterals",
"-language:experimental.fewerBraces",
"-language:experimental.into",
"-language:experimental.erasedDefinitions",
"-language:experimental.saferExceptions",
"-language:experimental.namedTypeArguments",
"-language:implicitConversions"
)
}