@groovy.transform.CompileStatic class MavenProfileRepository extends AbstractJarProfileRepository
Resolves profiles from a configured list of repositories using Aether
| Fields inherited from class | Fields |
|---|---|
class AbstractJarProfileRepository |
DEFAULT_PROFILE_GROUPID, allProfiles, profilesByName |
| Type | Name and description |
|---|---|
static java.net.URI |
APACHE_REPO_URI |
static java.net.URI |
GRAILS_REPO_URI |
groovy.lang.GroovyClassLoader |
classLoader |
MavenResolverGrapeEngine |
grapeEngine |
GrailsDependencyVersions |
profileDependencyVersions |
java.util.List<GrailsRepositoryConfiguration> |
repositoryConfigurations |
DependencyResolutionContext |
resolutionContext |
| Constructor and description |
|---|
MavenProfileRepository(java.util.List<GrailsRepositoryConfiguration> repositoryConfigurations) |
MavenProfileRepository() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static GrailsRepositoryConfiguration |
apacheRepo() |
|
java.util.List<Profile> |
getAllProfiles() |
|
Profile |
getProfile(java.lang.String profileName, java.lang.Boolean parentProfile) |
|
Profile |
getProfile(java.lang.String profileName) |
|
static GrailsRepositoryConfiguration |
grailsRepo() |
|
static boolean |
isSnapshotVersion(java.lang.String grailsVersion)Whether the given Grails version should resolve against snapshot repositories: only a snapshot build (or an unknown version) does. |
|
protected java.lang.String |
parseCurrentVersion(java.io.File localData) |
|
protected void |
processUrls() |
|
protected Profile |
resolveProfile(java.lang.String profileName) |
|
static boolean |
snapshotsEnabled()Whether snapshot resolution should be enabled for the running CLI. |
| Methods inherited from class | Name |
|---|---|
class AbstractJarProfileRepository |
getAllProfiles, getProfile, getProfile, getProfileAndDependencies, getProfileArtifact, getProfileDirectory, registerProfile |
Whether the given Grails version should resolve against snapshot repositories: only a snapshot build (or an unknown version) does. Kept as a pure function of the version so the decision can be made during the CLI lifecycle — and unit tested — rather than at class-initialisation time.
Whether snapshot resolution should be enabled for the running CLI. Reading the version here
(rather than in a static initialiser) keeps the environment access on the startup lifecycle.
For a milestone/release CLI this is false, which lets Aether use
UPDATE_POLICY_NEVER and serve fixed versions straight from the local cache instead of
making remote maven-metadata.xml round-trips on every resolve.