Avoid eager creation of tasks for Spotless plugin by bigdaz · Pull Request #617 · diffplug/spotless
added 3 commits
June 18, 2020 15:21Previously applying the Spotless plugin resulted in a many tasks to be created per subproject, even for an invocation like `gradle help`. Using "Task configuration avoidance" APIs means that these tasks will not be constructed if they will not be required in the task graph.
With this commit, running `./gradlew help -PspotlessModern=true` will no longer the `spotless`, `spotlessCheck` or `spotlessApply` tasks if they are not required for task execution. The only remaining task that is eagerly constructed is "spotlessInternalRegisterDependencies".
bigdaz
deleted the
lazy-task-creation
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters