Gradle task config and task execution
1 answer
Indeed: the 'println' statement of your task A will be executed during the "configuration" phase, while the "println" statement taks B will only be executed during the "run" phase (assuming that task B is run directly or indirectly through dependencies tasks)
For more information, checkout: http://www.gradle.org/docs/current/userguide/build_lifecycle.html . Section 56.2 has a good example (also demonstrating the third stage, which is the "initialization" phase, BTW)
Note: "<is shorthand for" doLast "
+4
source to share