-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sc
40 lines (32 loc) · 1.11 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
import mill._, scalalib._
import $file.^.common
object app extends ScalaModule {
def scalaVersion = common.scalaVersion
def scalacOptions = common.scalacOptions
def forkArgs = common.forkArgs
def mainClass = T.input {
Some(common.getBuildProp("mainClassName", "Planet", T.ctx()))
}
def sources = T.sources { common.scalaSourcePath }
// def resources = T.sources { os.pwd / "resources" }
def clean() = T.command {
val path = os.pwd / "out" / "app"
os.walk(path, skip = _.last == "clean").foreach(os.remove.all)
}
// https://mill-build.com/mill/Scala_Module_Config.html#_test_dependencies
object test extends ScalaTests {
def ivyDeps = Agg(
common.ivyJunitInterface,
//common.ivyScalatest,
//common.ivySpecs2Common,
//common.ivySpecs2Core
)
// def testFrameworks = Seq(
// "com.novocode.junit.JUnitFramework",
// "org.scalatest.tools.Framework",
// "org.specs2.runner.JUnitRunner" // org.specs2.Specs2Framework
// )
def testFramework = "com.novocode.junit.JUnitFramework"
//def moduleDeps = super.moduleDeps ++ Seq(baz.test)
}
}