A PomImporter imports entities from a Maven effective pom.
| Constructor and description |
|---|
PomImporter
(org.gradle.api.Project pProject, java.io.File pPomFile, groovy.lang.Closure<org.gradle.api.file.FileCollection> pClassPathSource)Create a new MavenImporter. |
| Type | Name and description |
|---|---|
java.lang.String |
getGroupId()Get the group ID from the pom file specified in the constructor. |
java.io.File |
getPomFile()Get the pom file this importer operates on. |
java.lang.String |
getVersionString()Get the version string from the pom file specified in the constructor. |
java.util.Collection<DependencySpec> |
importDependencies()Import dependencies from the pom file specified in the constructor. |
java.util.Collection<MavenRepositorySpec> |
importRepositories()Import repositories from the pom file specified in the constructor. |
| Methods inherited from class | Name |
|---|---|
class ProjectAware |
getProject |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a new MavenImporter.
pProject - The project to import to.pPomFile - The pom file to import from.pClassPathSource - A closure that will return the class path needed to load the
EffectivePomLoader implementation.Get the group ID from the pom file specified in the constructor.
Get the pom file this importer operates on.
Get the version string from the pom file specified in the constructor.
Import dependencies from the pom file specified in the constructor.
Import repositories from the pom file specified in the constructor.