@groovy.transform.CompileStatic final class GrailsRepositoryOverrides extends java.lang.Object
Shared handling of the grails.repo.url system property / GRAILS_REPO_URL
environment variable repository overrides, applying the same classification and HTTPS
validation as the Grails wrapper (GrailsWrapperRepo) and Grails Forge
(GradleRepository): local filesystem repositories are always allowed, remote
repositories must use HTTPS, and malformed remote values are rejected.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.util.List<java.lang.String> |
getConfiguredOverrides()
|
|
static boolean |
isLocalRepository(java.lang.String overrideUrl)Keep this classifier identical in shape to the GRAILS_REPO_URL handling in the wrapper's GrailsWrapperRepo and forge's GradleRepository so all
tools agree on what is local vs remote. |
|
static boolean |
isRepositoryAlias(java.lang.String overrideUrl)
|
|
static java.lang.String |
resolveRepositoryAlias(java.lang.String overrideUrl)Resolves the Gradle repository aliases to the concrete location they stand for — the local Maven repository path and the Maven Central URL — for consumers that resolve artifacts directly rather than writing the alias into a Gradle build. |
|
static java.lang.String |
validateOverrideRepository(java.lang.String overrideUrl)Validates a single override: local filesystem repositories (including Windows drive paths) pass through, remote repositories must use HTTPS, anything else is rejected. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Keep this classifier identical in shape to the GRAILS_REPO_URL handling in the
wrapper's GrailsWrapperRepo and forge's GradleRepository so all
tools agree on what is local vs remote.
overrideUrl - the configured override
overrideUrl - the configured overridemavenLocal() or mavenCentral()Resolves the Gradle repository aliases to the concrete location they stand for — the local Maven repository path and the Maven Central URL — for consumers that resolve artifacts directly rather than writing the alias into a Gradle build.
overrideUrl - the configured overrideValidates a single override: local filesystem repositories (including Windows drive paths) pass through, remote repositories must use HTTPS, anything else is rejected.
overrideUrl - the configured override