Avoid eager creation of tasks for Spotless plugin by bigdaz · Pull Request #617 · diffplug/spotless

added 3 commits

June 18, 2020 15:21
Previously 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 bigdaz deleted the lazy-task-creation branch

June 18, 2020 23:02