summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorMinghao Liu <molikto@gmail.com>2018-01-12 14:43:53 +0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-01-11 22:43:53 -0800
commite8f53585e555cec800063cddc763a2837f4c5260 (patch)
treed52052274fc63f8e8dfdeddb67baaea2959ba2cd /build.sc
parentf084c2059f1c21c3ac7726f4d06881d6fba7d341 (diff)
downloadmill-e8f53585e555cec800063cddc763a2837f4c5260.tar.gz
mill-e8f53585e555cec800063cddc763a2837f4c5260.tar.bz2
mill-e8f53585e555cec800063cddc763a2837f4c5260.zip
Add generated sources target (#109)
* add generated source * naming * multiple content root * no message * fix output classes path
Diffstat (limited to 'build.sc')
-rwxr-xr-xbuild.sc14
1 files changed, 7 insertions, 7 deletions
diff --git a/build.sc b/build.sc
index 29eb53bf..234f24a9 100755
--- a/build.sc
+++ b/build.sc
@@ -58,22 +58,22 @@ object core extends MillModule {
Dep.Java("org.scala-sbt", "test-interface", "1.0")
)
- def generatedSources = T{
+ def generatedCoreSources = T{
mkdir(T.ctx().dest)
- shared.generateSources(T.ctx().dest)
+ shared.generateCoreSources(T.ctx().dest)
PathRef(T.ctx().dest)
}
- def allSources = super.allSources() ++ Seq(generatedSources())
+ def generatedSources = T { super.generatedSources() ++ Seq(generatedCoreSources()) }
+
val test = new Tests(implicitly)
class Tests(ctx0: mill.Module.Ctx) extends super.Tests(ctx0){
- def generatedSources = T{
+ def generatedCoreTestSources = T{
mkdir(T.ctx().dest)
- shared.generateTests(T.ctx().dest)
+ shared.generateCoreTestSources(T.ctx().dest)
PathRef(T.ctx().dest)
-
}
- def allSources = super.allSources() ++ Seq(generatedSources())
+ def generatedSources = T { super.generatedSources() ++ Seq(generatedCoreTestSources()) }
}
}