Gradle task retries

Is there a simple way to tell gradle to retry tasks, similar to https://ant.apache.org/manual/Tasks/retry.html ? Or some way to handle task failures?

I am thinking of failures that are due to random occurrences of network problems.

1 Like