public interface EffectivePomLoader
EffectivePomLoader loads the effective pom from a Maven pom file and retrieves (parts
of) its contents.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getArtifactId()
Get the artifact ID from the effective pom, possibly loading it first.
|
java.util.Collection<ModuleDependencySpec> |
getDependencies()
Get the dependencies from the effective pom, possibly loading it first.
|
java.lang.String |
getGroupId()
Get the group ID from the effective pom, possibly loading it first.
|
RepositorySpec |
getLocalRepository()
Get the local repository from the settings file, possibly loading it first.
|
java.util.Collection<RepositorySpec> |
getRepositories()
Get the repositories from the effective pom, possibly loading it first.
|
java.lang.String |
getVersion()
Get the version string from the effective pom, possibly loading it first.
|
void |
init(java.io.File pPomFile,
java.io.File pSettingsFile)
Specify the pom file to load and any settings file to apply when loading the effective pom.
|
void init(java.io.File pPomFile,
java.io.File pSettingsFile)
pPomFile - The pom file.pSettingsFile - Any settings file to use. If null the default Maven settings will be
used.java.lang.NullPointerException - if pPomFile is null.java.util.Collection<ModuleDependencySpec> getDependencies()
ModuleDependencySpec, one for each dependency in the
effective pom. The returned collection will never be null but may be empty. The
Maven scope names will be used as configuration names in the specs.org.gradle.api.GradleException - if loading the pom file fails.java.util.Collection<RepositorySpec> getRepositories()
RepositorySpec, one for each repository in the pom. The
returned collection will never be null but may be empty.org.gradle.api.GradleException - if loading the pom file fails.RepositorySpec getLocalRepository()
RepositorySpec with the path to the local repository.org.gradle.api.GradleException - if loading the settings file fails.java.lang.String getGroupId()
org.gradle.api.GradleException - if loading the pom file fails.java.lang.String getArtifactId()
org.gradle.api.GradleException - if loading the pom file fails.java.lang.String getVersion()
org.gradle.api.GradleException - if loading the pom file fails.