class MavenImportPlugin extends java.lang.Object
Gradle plugin for importing from a Maven pom file.
Dependencies can be added to a project through the dynamic method fromPomFile that is
added to the project's DependencyHandler.
Repositories can be added to a project through the dynamic method fromPomFile that is
added to the project's RepositoryHandler.
Dependencies and repositories can be written to a file on Gradle notation with the
PomConvertTask task added to the project.
The plugin also creates a configuration that specifies the classpath to use when running the Maven import.
| Type | Name and description |
|---|---|
void |
apply(org.gradle.api.Project pProject) |
void |
applyGroupToProject(java.lang.Object pPomFile)Set the project's group property to the group ID specified in a pom file. |
void |
applyVersionToProject(java.lang.Object pPomFile)Set the project's version property to the version string specified in a pom file. |
void |
importMavenDependencies(java.lang.Object pPomFile)Import dependencies from a Maven pom file and add them to the project's dependencies. |
void |
importMavenRepositories(java.lang.Object pPomFile)Import repositories from a Maven pom file and add them to the project's repository handler. |
| Methods inherited from class | Name |
|---|---|
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() |
Set the project's group property to the group ID specified in a pom file.
pPomFile - The pom file to get the group ID from. If null, a file called
"pom.xml" in the project directory will be used. Set the project's version property to the version string specified in a pom file.
pPomFile - The pom file to get the version string from. If null, a file called
"pom.xml" in the project directory will be used.Import dependencies from a Maven pom file and add them to the project's dependencies.
pPomFile - The pom file to import dependencies from. If null, a file called
"pom.xml" in the project directory will be used.Import repositories from a Maven pom file and add them to the project's repository handler.
pPomFile - The pom file to import repositories from. If null, a file called
"pom.xml" in the project directory will be used.