I need to write a gradle build file which, amongst other things, grabs certain build artifacts, and generates a zip file containing these.
The artifacts are not available at configuration time, so I am unable to configure my zip task at configuration time.
In earlier versions of gradle, I was able to explicitly invoke the task, using something like :
Zip distCopy = task("distCopy"+recipient.@name.text(), type: Zip) .. .. distCopy.execute()
However, this is not available in more recent versions of gradle.
So, at the moment, I am configuring my zip task at runtime, in a ‘doLast’ block.
How do I convince it to actually execute?