I would like to programmatically tell gradle to return from a task, for example:
task ('SetupLibs') << {
if (sometest)
// how to tell gradle to return from this task
// because it is up-to-date
...
}
Is this possible in groovy? how?