Directly invoking task methods isn’t how tasks are supposed to be used. The Gradle script is supposed to create dependencies between tasks, let Gradle resolve the build sequence and execute the tasks.
See this comment and this other comment
Directly invoking task methods isn’t how tasks are supposed to be used. The Gradle script is supposed to create dependencies between tasks, let Gradle resolve the build sequence and execute the tasks.
See this comment and this other comment