summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2017-12-04 10:17:25 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2017-12-04 10:17:25 -0800
commita9ed3b67cc1d0b0a755159013b28766f436e866a (patch)
tree443b7c785359905983640499df724f75a53aee10 /build.sbt
parent7238d7340744a5eda74acb6970c2cbf7bedea0e7 (diff)
downloadmill-a9ed3b67cc1d0b0a755159013b28766f436e866a.tar.gz
mill-a9ed3b67cc1d0b0a755159013b28766f436e866a.tar.bz2
mill-a9ed3b67cc1d0b0a755159013b28766f436e866a.zip
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
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt9
1 files changed, 1 insertions, 8 deletions
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).!