summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2017-11-25 12:18:36 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2017-11-25 12:18:36 -0800
commit2c0ecb9733dfd231c8d16b819d89d515569f104c (patch)
treea684db5215e13c7429f1c485307c389f187701d3 /build.sc
parente60bbce22af14088dabf0be5a8fa64c1cf9bdf82 (diff)
downloadmill-2c0ecb9733dfd231c8d16b819d89d515569f104c.tar.gz
mill-2c0ecb9733dfd231c8d16b819d89d515569f104c.tar.bz2
mill-2c0ecb9733dfd231c8d16b819d89d515569f104c.zip
Fix cross-build discovery
Diffstat (limited to 'build.sc')
-rwxr-xr-xbuild.sc28
1 files changed, 14 insertions, 14 deletions
diff --git a/build.sc b/build.sc
index 034a0685..7ccb2d32 100755
--- a/build.sc
+++ b/build.sc
@@ -21,20 +21,20 @@ object Core extends ScalaModule {
def basePath = pwd / 'core
override def sources = pwd/'core/'src/'main/'scala
-// val cross =
-// for(jarLabel <- mill.define.Cross("jarA", "jarB", "jarC"))
-// yield new mill.Module{
-// def printIt() = T.command{
-// println("PRINTING IT: " + jarLabel)
-// }
-// def jar = T{
-// val dest = T.ctx().dest
-// ammonite.ops.mkdir(dest/ammonite.ops.up)
-// ammonite.ops.cp(Core.jar().path, dest)
-//
-// PathRef(dest)
-// }
-// }
+ val cross =
+ for(jarLabel <- mill.define.Cross("jarA", "jarB", "jarC"))
+ yield new mill.Module{
+ def printIt() = T.command{
+ println("PRINTING IT: " + jarLabel)
+ }
+ def jar = T{
+ val dest = T.ctx().dest
+ ammonite.ops.mkdir(dest/ammonite.ops.up)
+ ammonite.ops.cp(Core.jar().path, dest)
+
+ PathRef(dest)
+ }
+ }
object test extends this.Tests{
def basePath = pwd / 'core