public class EffectivePomLoaderImpl extends java.lang.Object implements EffectivePomLoader
EffectivePomLoader based on the Maven libraries. This class should not
be loaded before the Maven libraries are available on the class path.| Constructor and Description |
|---|
EffectivePomLoaderImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getArtifactId()
Get the artifact ID from the effective pom.
|
java.util.Collection<ModuleDependencySpec> |
getDependencies()
Get the dependencies from the effective pom.
|
java.lang.String |
getGroupId()
Get the group ID from the effective pom.
|
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.
|
java.lang.String |
getVersion()
Get the version string from the effective pom.
|
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.
|
public void init(java.io.File pPomFile,
java.io.File pSettingsFile)
init in interface EffectivePomLoaderpPomFile - 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.public java.util.Collection<ModuleDependencySpec> getDependencies()
init if that hasn't been done before.getDependencies in interface EffectivePomLoaderModuleDependencySpec, 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.public java.util.Collection<RepositorySpec> getRepositories()
getRepositories in interface EffectivePomLoaderRepositorySpec, 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.public RepositorySpec getLocalRepository()
getLocalRepository in interface EffectivePomLoaderRepositorySpec with the path to the local repository.org.gradle.api.GradleException - if loading the settings file fails.public java.lang.String getGroupId()
init if that hasn't been done before.getGroupId in interface EffectivePomLoaderorg.gradle.api.GradleException - if loading the pom file fails.public java.lang.String getArtifactId()
init if that hasn't been done before.getArtifactId in interface EffectivePomLoaderorg.gradle.api.GradleException - if loading the pom file fails.public java.lang.String getVersion()
init if that hasn't been done before.getVersion in interface EffectivePomLoaderorg.gradle.api.GradleException - if loading the pom file fails.