wrap execution in doLast {} so that it's only run in the execution phase