Class KonfigyrExtension.PublishSpec

java.lang.Object
com.konfigyr.gradle.KonfigyrExtension.PublishSpec
Enclosing class:
KonfigyrExtension

@NullMarked public static final class KonfigyrExtension.PublishSpec extends Object
Polling behavior for the direct-publish scenario, used while waiting for a com.konfigyr.artifactory.Publication to be confirmed after PublishArtifactMetadataTask uploads this project's own artifact metadata.
Since:
1.1.0
See Also:
  • Method Details

    • getPollTimeout

      public org.gradle.api.provider.Property<Long> getPollTimeout()
      The maximum time in milliseconds to wait for a successful poll of a release. Defaults to 10 minutes.

      This property defines the overall timeout for the polling process. If a release has not been successfully detected within this duration, the poll job will fail, preventing the build from hanging indefinitely.

    • getPollInterval

      public org.gradle.api.provider.Property<Long> getPollInterval()
      The initial time interval in milliseconds between consecutive polling attempts to check for a release. Defaults to one second.

      This property specifies the starting interval for an exponential backoff strategy. If a poll attempt fails, the next interval will be multiplied by 1.75. This allows for more rapid retries initially, with a gracefully increasing delay for persistent failures. The backoff will continue until a successful poll occurs or the overall pollTimeout is reached.