Gradle project extension for specifying a Maven settings file, a mapping from Maven scopes to Gradle configurations, and the third-party library versions to use when importing from a Maven pom.
| Constructor and description |
|---|
MavenImportExtension
(org.gradle.api.Project pProject)Create a new MavenImportExtension. |
| Type | Name and description |
|---|---|
java.lang.String |
getAetherVersion()Get the version of the Eclipse Aether libraries to use when importing from a pom file. |
org.gradle.api.artifacts.repositories.ArtifactRepository |
getClasspathRepository()Get the temporary repository to use for resolving the dependencies of the mavenImport
configuration. |
java.lang.String |
getMavenVersion()Get the version of the Maven libraries to use when importing from a pom file. |
java.io.File |
getSettingsFile()Get the Maven settings file to use when importing from a pom file. |
java.lang.String |
getSisuGuiceVersion()Get the version of the Sisu Guice libraries to use when importing from a pom file. |
java.lang.String |
getSisuPlexusVersion()Get the version of the Sisu Plexus libraries to use when importing from a pom file. |
void |
setAetherVersion(java.lang.String pAetherVersion)Set the version of the Eclipse Aether libraries to use when importing from a pom file. |
void |
setClasspathRepository(java.lang.Object pRepository)Set the temporary repository to use for resolving the dependencies of the mavenImport
configuration. |
void |
setMavenVersion(java.lang.String pMavenVersion)Set the version of the Maven libraries to use when importing from a pom file. |
void |
setSettingsFile(java.lang.Object pFile)Set the Maven settings file to use when importing from a pom file. |
void |
setSisuGuiceVersion(java.lang.String pSisuGuiceVersion)Set the version of the Sisu Guice libraries to use when importing from a pom file. |
void |
setSisuPlexusVersion(java.lang.String pSisuPlexusVersion)Set the version of the Sisu Plexus libraries to use when importing from a pom file |
| 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() |
Mapping from Maven scope name to Gradle configuration name. Scopes not explicitly mapped are implicitly mapped to a configuration with the same name, e.g. "runtime".
Create a new MavenImportExtension.
pProject - The project that owns the extension.Get the version of the Eclipse Aether libraries to use when importing from a pom file.
Get the temporary repository to use for resolving the dependencies of the mavenImport
configuration.
Get the version of the Maven libraries to use when importing from a pom file.
Get the Maven settings file to use when importing from a pom file. If this file is null, the default Maven settings will be used.
Get the version of the Sisu Guice libraries to use when importing from a pom file.
Get the version of the Sisu Plexus libraries to use when importing from a pom file.
Set the version of the Eclipse Aether libraries to use when importing from a pom file.
pAetherVersion - The Eclipse Aether library version. Passing null will restore the
default value the next time getAetherVersion is called. Set the temporary repository to use for resolving the dependencies of the mavenImport
configuration.
pRepository - An ArtifactRepository instance or a Closure or
Callable that returns an ArtifactRepository instance.Set the version of the Maven libraries to use when importing from a pom file.
pMavenVersion - The Maven library version. Passing null will restore the default value
the next time getMavenVersion is called.Set the Maven settings file to use when importing from a pom file. This file will be resolved relative to the project directory.
Set the version of the Sisu Guice libraries to use when importing from a pom file.
pSisuGuiceVersion - The Sisu Guice library version. Passing null will restore the
default value the next time getSisuGuiceVersion is called.Set the version of the Sisu Plexus libraries to use when importing from a pom file
pSisuPlexusVersion - The Sisu Plexus library version. Passing null will restore the
default value the next time getSisuPlexusVersion is
called.Groovy Documentation