-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sc
43 lines (38 loc) · 1.71 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
import mill._, scalalib._
object scalusPlugin extends RootModule with SbtModule {
def scalaVersion = "3.3.3"
// Add (or replace) source folders for the module to use
def sources = T.sources {
val baseDir = millSourcePath / "shared" / "src" / "main" / "scala"
super.sources() ++ Seq(
PathRef(millSourcePath / "scalus-plugin" / "src" / "main" / "scala")
) ++ Seq(
PathRef(baseDir / "scalus" / "utils" / "Hex.scala"),
PathRef(baseDir / "scalus" / "builtin" / "ByteString.scala"),
PathRef(baseDir / "scalus" / "builtin" / "Data.scala"),
PathRef(baseDir / "scalus" / "builtin" / "List.scala"),
PathRef(baseDir / "scalus" / "sir" / "SIR.scala"),
PathRef(baseDir / "scalus" / "sir" / "FlatInstances.scala"),
PathRef(baseDir / "scalus" / "uplc" / "Constant.scala"),
PathRef(baseDir / "scalus" / "uplc" / "DefaultFun.scala"),
PathRef(baseDir / "scalus" / "uplc" / "DefaultUni.scala"),
PathRef(baseDir / "scalus" / "uplc" / "CommonFlatInstances.scala"),
PathRef(baseDir / "scalus" / "flat" / "package.scala")
)
}
def compileIvyDeps = Agg(
ivy"org.scala-lang::scala3-compiler:${scalaVersion()}"
)
def scalacOptions: T[Seq[String]] = Seq("-deprecation", "-Xfatal-warnings", "-explain")
object test extends SbtModuleTests with TestModule.ScalaTest {
def ivyDeps = Agg(
ivy"org.scalatest::scalatest:3.2.18",
ivy"org.scalatestplus::scalacheck-1-16:3.2.14.0"
)
def sources = T.sources {
super.sources() ++ Seq(
PathRef(millSourcePath / "scalus-plugin" / "src" / "test")
)
}
}
}