diff options
author | Minghao Liu <molikto@gmail.com> | 2018-01-12 14:43:53 +0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-11 22:43:53 -0800 |
commit | e8f53585e555cec800063cddc763a2837f4c5260 (patch) | |
tree | d52052274fc63f8e8dfdeddb67baaea2959ba2cd /build.sc | |
parent | f084c2059f1c21c3ac7726f4d06881d6fba7d341 (diff) | |
download | mill-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-x | build.sc | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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()) } } } |