Is there any method for executing some task after the build is done?
I have checked doLast
but it is only for tasks (task1.doLast(task2)
) and not for build...
Is there any method for executing some task after the build is done?
I have checked doLast
but it is only for tasks (task1.doLast(task2)
) and not for build...
After reading and checking this the answer is build.finalizedBy(copyToLib)
You can call
tasks.build.doLast(){
println 'This will be printed after the build task even if something else calls the build task'
}