mirror of https://github.com/sbt/sbt.git
The clean task got a lot slower in 1.3.0 (https://github.com/sbt/sbt/issues/4972). The reason for this was that sbt 1.3.0 generated many custom clean tasks for any tasks that returned `File` or `Seq[File]`. Each of these tasks was tagged with Tags.Clean which meant that only one of them could run at a time. As a result, it took a long time to evaluate all of the custom tasks, even if they were no-ops. In the akka project, a no-op clean was taking 35 seconds which is simply unacceptable. After this change, a no-op clean takes less than a second in akka (a full clean only takes about 6 seconds after running test:compile) To fix this, I stopped aggregating the clean task across configs and projects. Because I removed the aggregation, I needed to manually implement clean in the `Compile` and `Test` configurations to make `Compile / clean` and `Test / compile` clean work correctly. |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||