From a9ed3b67cc1d0b0a755159013b28766f436e866a Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Mon, 4 Dec 2017 10:17:25 -0800 Subject: Flesh out `bridges` pre-compilation in Mill build, getting the cross-minor-version `AcyclicTests` running using the `mill` test runner Fixed `Discovered` to only pick up public `Target`s, which makes it skip things like the `super$compile` of an overriden `compile` target. Split up `sources` and `allSources` TBD how to properly switch the `compilerBridgeJar` between the different output paths of SBT's compile-dir and Mill's compile-dir, and eventually to a maven-central artifact too --- build.sbt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'build.sbt') diff --git a/build.sbt b/build.sbt index c1d8719b..3002eeb7 100644 --- a/build.sbt +++ b/build.sbt @@ -54,15 +54,8 @@ def bridge(bridgeVersion: String) = Project( val url = s"http://repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_$v/1.0.5/compiler-bridge_$v-1.0.5-sources.jar" val curlDest = java.nio.file.Paths.get(target.value.toString, "sources") - if (java.nio.file.Files.exists(curlDest)) { - java.nio.file.Files.walk(curlDest) - .iterator() - .asScala - .toSeq - .reverse - .foreach(java.nio.file.Files.delete) - } + Seq("rm", "-rf", curlDest.toString).! java.nio.file.Files.createDirectories(curlDest) Seq("curl", "-L", "-o", curlDest.resolve("bridge.jar").toString, url).! -- cgit v1.2.3