Package io.root.patcher
Class RootIoExtension
java.lang.Object
io.root.patcher.RootIoExtension
Gradle extension that exposes
rootio { } configuration block.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<Boolean>Allow plain HTTP for the pkg repository.abstract org.gradle.api.provider.Property<String>Root.io API key (required).abstract org.gradle.api.provider.Property<String>Root.io API base URL.abstract org.gradle.api.provider.Property<Integer>Max number of retry attempts on transient failures.abstract org.gradle.api.provider.Property<String>Password for the pkg Maven repository.abstract org.gradle.api.provider.Property<String>Root.io package registry Maven repository URL.abstract org.gradle.api.provider.Property<String>Username for the pkg Maven repository.abstract org.gradle.api.provider.Property<Long>Base delay in milliseconds for exponential backoff between retries.abstract org.gradle.api.provider.Property<Long>Cache TTL in hours.
-
Constructor Details
-
RootIoExtension
public RootIoExtension()
-
-
Method Details
-
getApiKey
Root.io API key (required). Set via rootio { apiKey.set(...) }.- Returns:
- the property
-
getApiUrl
Root.io API base URL. Default: ...- Returns:
- the property
-
getTtlHours
Cache TTL in hours. Default: 24. Set to 0 for no caching.- Returns:
- the property
-
getMaxRetries
Max number of retry attempts on transient failures. Default: 3. Set to 0 to disable retries.- Returns:
- the property
-
getRetryBaseDelayMs
Base delay in milliseconds for exponential backoff between retries. Default: 1000.- Returns:
- the property
-
getPkgUrl
Root.io package registry Maven repository URL. Default: ...- Returns:
- the property
-
getPkgUsername
Username for the pkg Maven repository. When set together with pkgPassword, these credentials are used instead of the Root.io API key.- Returns:
- the property
-
getPkgPassword
Password for the pkg Maven repository. When set together with pkgUsername, these credentials are used instead of the Root.io API key.- Returns:
- the property
-
getAllowInsecurePkgRepo
Allow plain HTTP for the pkg repository. Default: false. Enable only for local/test setups.- Returns:
- the property
-