Class ResilienceSettings

java.lang.Object
io.github.intisy.gradle.github.api.config.ResilienceSettings

public class ResilienceSettings extends Object
Configures how the plugin behaves when GitHub cannot be reached as expected.
 github {
     resilience {
         skipOnRateLimit = true
     }
 }
 
  • Constructor Details

    • ResilienceSettings

      public ResilienceSettings()
  • 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 to false, 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.