diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-18 19:42:38 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-18 19:42:38 -0800 |
commit | c4ee67d3ea4e2e96fe09d5fcb21734902e6bfa56 (patch) | |
tree | f6fd01818e955452c0adf23bc7f5c57d5b9999de /build.sc | |
parent | 2412bf2775676a9c09eb3d370a2bd9064c51822b (diff) | |
download | mill-c4ee67d3ea4e2e96fe09d5fcb21734902e6bfa56.tar.gz mill-c4ee67d3ea4e2e96fe09d5fcb21734902e6bfa56.tar.bz2 mill-c4ee67d3ea4e2e96fe09d5fcb21734902e6bfa56.zip |
First hack pass at cross-build discovery and command-running now works.
Can be tested out on our `build.sc` via `scalaplugin/target/mill run Core.cross[a].printIt`
Needs tons of cleanup...
Diffstat (limited to 'build.sc')
-rwxr-xr-x | build.sc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -20,6 +20,12 @@ object Core extends ScalaModule { def basePath = pwd / 'core override def sources = pwd/'core/'src/'main/'scala + + val cross = for(c <- mill.define.Cross("a", "b", "c")) yield new mill.Module{ + def printIt() = T.command{ + println("PRINTING IT: " + c) + } + } } object CoreTests extends ScalaModule { def scalaVersion = "2.12.4" |