doLast
The doLast
method adds an action to the end of a task's execution phase.
This action is executed after all other actions defined in the task have completed.
Usage Example:
tasks.register("exampleTask") {
doLast {
println("This action runs after the main task actions.")
}
}
Syntax: <<
Operator '<<' IS do last
Note: the "<<" is a shorthand notation for "doLast"
task B << {
println 'action'
}
Backlinks