In my build.gradle i have the following lines of code:
task aExecutionTask << {
println 'hello says aExecutionTask, via the execution phase'
}
task aConfigurationTask{
println 'hello says aConfigurationTask, via the configuration phase'
doLast{
println 'im last to get done'
}
}
and when i run the aExecutionTask from the command line using
./gradlew aExecutionTask
the output is the following:
hello says aConfigurationTask, via the configuration phase
:app:aExecutionTask
hello says aExecutionTask, via the execution phase
Why did it not print out my doLast statement ? It clearly ran the task "aConfigurationTask" but it did not run its doLast. So then am i to understand that the aConfigurationTask was configured but not executed ? is that the concept ?