Index
All Classes and Interfaces|All Packages
A
- ApiKeyResolver - Class in io.root.patcher
-
Resolves the Root.io API key from the environment, JVM system properties, or a
.envfile. - ApiKeyResolver() - Constructor for class io.root.patcher.ApiKeyResolver
-
Creates a resolver that reads environment variables via
System.getenv(java.lang.String). - apply(Project) - Method in class io.root.patcher.RootIoPatcherPlugin
D
- DepCache - Class in io.root.patcher
-
SHA-1-keyed JSON file cache for Root.io API responses, stored under
.gradle/rootio-cache/. - DepCache() - Constructor for class io.root.patcher.DepCache
G
- getAllowInsecurePkgRepo() - Method in class io.root.patcher.RootIoExtension
-
Allow plain HTTP for the pkg repository.
- getApiKey() - Method in class io.root.patcher.RootIoExtension
-
Root.io API key (required).
- getApiKey() - Method in interface io.root.patcher.RootIoValueSource.Parameters
- getApiUrl() - Method in class io.root.patcher.RootIoExtension
-
Root.io API base URL.
- getApiUrl() - Method in interface io.root.patcher.RootIoValueSource.Parameters
- getCoords() - Method in interface io.root.patcher.RootIoValueSource.Parameters
- getMaxRetries() - Method in class io.root.patcher.RootIoExtension
-
Max number of retry attempts on transient failures.
- getMaxRetries() - Method in interface io.root.patcher.RootIoValueSource.Parameters
- getPkgPassword() - Method in class io.root.patcher.RootIoExtension
-
Password for the pkg Maven repository.
- getPkgUrl() - Method in class io.root.patcher.RootIoExtension
-
Root.io package registry Maven repository URL.
- getPkgUsername() - Method in class io.root.patcher.RootIoExtension
-
Username for the pkg Maven repository.
- getRetryBaseDelayMs() - Method in class io.root.patcher.RootIoExtension
-
Base delay in milliseconds for exponential backoff between retries.
- getRetryBaseDelayMs() - Method in interface io.root.patcher.RootIoValueSource.Parameters
- getRootDirPath() - Method in interface io.root.patcher.RootIoValueSource.Parameters
- getTtlHours() - Method in class io.root.patcher.RootIoExtension
-
Cache TTL in hours.
- getTtlHours() - Method in interface io.root.patcher.RootIoValueSource.Parameters
I
- io.root.patcher - package io.root.patcher
L
- lookup(String, File, long, Supplier<String>) - Static method in class io.root.patcher.DepCache
-
Look up the patched coordinates for
coordsfrom the local cache.
O
- obtain() - Method in class io.root.patcher.RootIoValueSource
P
- PkgRepoCredentialResolver - Class in io.root.patcher
-
Resolves credentials for the pkg Maven repository.
- PkgRepoCredentialResolver() - Constructor for class io.root.patcher.PkgRepoCredentialResolver
Q
- query(String, String, String) - Method in class io.root.patcher.RootIoClient
-
Query the Root.io API for a patch for the given dependency, with exponential backoff retries.
R
- resolve(RootIoExtension, ApiKeyResolver, File) - Static method in class io.root.patcher.PkgRepoCredentialResolver
-
Returns an
Actionthat applies credentials to a GradlePasswordCredentials, ornullif no credentials should be used (anonymous or file:// repo). - resolve(File) - Method in class io.root.patcher.ApiKeyResolver
-
Resolves the Root.io API key from available sources in ascending priority order: .env file < system property < environment variable.
- RootDependency - Class in io.root.patcher
-
Represents a Maven dependency as separate group, name, and version components.
- RootDependency(String) - Constructor for class io.root.patcher.RootDependency
-
Parses a Maven GAV string of the form
group:artifact:version. - RootDependency(String, String, String) - Constructor for class io.root.patcher.RootDependency
- RootIoClient - Class in io.root.patcher
-
HTTP client for querying the Root.io
/v3/analyze/mavenAPI, with exponential backoff retries. - RootIoClient(int, long) - Constructor for class io.root.patcher.RootIoClient
-
Creates a client with the given retry settings and exponential backoff.
- RootIoExtension - Class in io.root.patcher
-
Gradle extension that exposes
rootio { }configuration block. - RootIoExtension() - Constructor for class io.root.patcher.RootIoExtension
- RootIoPatcherPlugin - Class in io.root.patcher
-
Gradle plugin that intercepts dependency resolution and substitutes vulnerable artifacts with Root.io patches.
- RootIoPatcherPlugin() - Constructor for class io.root.patcher.RootIoPatcherPlugin
- RootIoValueSource - Class in io.root.patcher
-
Gradle
ValueSourcethat resolves a patched dependency coordinate for a given GAV string, using a local cache backed byDepCacheand the Root.io API viaRootIoClient. - RootIoValueSource() - Constructor for class io.root.patcher.RootIoValueSource
- RootIoValueSource.Parameters - Interface in io.root.patcher
-
Input parameters for
RootIoValueSource.
T
- toBuildTarget() - Method in class io.root.patcher.RootDependency
-
Returns a map with
group,name, andversionkeys, suitable for passing to Gradle'suseTarget.
All Classes and Interfaces|All Packages