summaryrefslogtreecommitdiff
path: root/scalaplugin
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2017-11-15 14:17:47 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2017-11-15 14:17:51 -0800
commitd9cfdd877cb4d09e7be414d30643aac38430101d (patch)
tree4370f2e196feea61143281d2dcb4bcdf2843f661 /scalaplugin
parent28c099486199c8fbf1c1f5247278a0484e8a747b (diff)
downloadmill-d9cfdd877cb4d09e7be414d30643aac38430101d.tar.gz
mill-d9cfdd877cb4d09e7be414d30643aac38430101d.tar.bz2
mill-d9cfdd877cb4d09e7be414d30643aac38430101d.zip
Allow opting in to faster/sloppier `PathRef` signatures using mtime + filesize instead of md5ing the file body.
Used for third-party dependencies (which are large jars but shouldn't change often) this speeds up the no-op `mill run ScalaPlugin.compile` by about a quarter
Diffstat (limited to 'scalaplugin')
-rw-r--r--scalaplugin/src/main/scala/mill/scalaplugin/Module.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/scalaplugin/src/main/scala/mill/scalaplugin/Module.scala b/scalaplugin/src/main/scala/mill/scalaplugin/Module.scala
index 0fb5fd35..f18c49fa 100644
--- a/scalaplugin/src/main/scala/mill/scalaplugin/Module.scala
+++ b/scalaplugin/src/main/scala/mill/scalaplugin/Module.scala
@@ -108,7 +108,7 @@ object Module{
.unsafePerformSync
.flatMap(_.toOption)
- localArtifacts.map(p => PathRef(Path(p)))
+ localArtifacts.map(p => PathRef(Path(p), quick = true))
}
def scalaCompilerIvyDeps(scalaVersion: String) = Seq(
Dep.Java("org.scala-lang", "scala-compiler", scalaVersion),