Class ResilienceExtension
java.lang.Object
io.github.intisy.gradle.github.extension.ResilienceExtension
Extension for configuring how the plugin behaves when GitHub cannot be reached as expected.
github {
resilience {
skipOnRateLimit = true
}
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetSkipOnRateLimit(boolean skipOnRateLimit) Controls how a GitHub API rate limit is handled.
-
Constructor Details
-
ResilienceExtension
public ResilienceExtension()
-
-
Method Details
-
setSkipOnRateLimit
public void setSkipOnRateLimit(boolean skipOnRateLimit) Controls how a GitHub API rate limit is handled. When enabled, the plugin degrades gracefully instead of failing the build: a rate-limited dependency resolution falls back to the cached (possibly outdated) jar when one exists, and an update check keeps the currently declared version. Only when no cached copy exists is the dependency skipped. Defaults tofalse, which aborts the build on a rate limit.- Parameters:
skipOnRateLimit- whether to degrade gracefully (rather than fail) when the rate limit is hit.
-
isSkipOnRateLimit
public boolean isSkipOnRateLimit()- Returns:
- whether rate-limited operations degrade gracefully instead of failing the build.
-