A Gradle plugin that sets an overall run timeout for the build.
Note
Gradle does support timeouts for individual tasks, but not for the entire build yet.
Apply the plugin at the root project or its settings:
plugins {
id("io.github.gmazzo.build.timeout") version "<latest>"
}
buildTimeout.timeout(10.minutes)Alternatively, you can set the timeout via a Gradle property:
./gradlew build -PbuildTimeout=10mor via gradle.properties:
buildTimeout=10m