For instance, the following error should be safe to retry.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':buildSrc'.
> Could not resolve all artifacts for configuration ':buildSrc:classpath'.
> Could not download bcprov-jdk15on-1.64.jar (org.bouncycastle:bcprov-jdk15on:1.64)
> Could not get resource 'https://plugins.gradle.org/m2/org/bouncycastle/bcprov-jdk15on/1.64/bcprov-jdk15on-1.64.jar'.
> Connection reset
For instance, the following error should be safe to retry.
See https://github.com/gradle/gradle/issues/2598#issuecomment-676412666