public class MavenImportExtension extends ProjectAware
| Constructor and Description |
|---|
MavenImportExtension(org.gradle.api.Project pProject,
org.gradle.api.artifacts.Configuration pConfiguration)
Create a new
MavenImportExtension. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAetherVersion()
Get the version of the Eclipse Aether libraries to specify in the dependencies of the
mavenImport configuration. |
org.gradle.api.artifacts.repositories.ArtifactRepository |
getClassPathRepository()
Get the temporary repository to use for resolving the dependencies of the
mavenImport
configuration. |
org.gradle.api.file.FileCollection |
getMavenClassPath()
Get the class path containing the Maven related classes used by the Maven import.
|
java.lang.String |
getMavenVersion()
Get the version of the Maven libraries to specify in the dependencies of the
mavenImport configuration. |
java.util.Map<java.lang.String,java.lang.String> |
getScopeToConfiguration()
Get the mapping from Maven scope name to Gradle configuration name.
|
java.io.File |
getSettingsFile()
Get the Maven settings file to use when importing from a pom file.
|
java.lang.String |
getWagonVersion()
Get the version of the Maven Wagon libraries to specify in the dependencies of the
mavenImport configuration. |
void |
setAetherVersion(java.lang.String pAetherVersion) |
void |
setClassPathRepository(java.lang.Object pRepository)
Set the temporary repository to use for resolving the dependencies of the
mavenImport
configuration. |
void |
setMavenClassPath(org.gradle.api.file.FileCollection pMavenClassPath) |
void |
setMavenVersion(java.lang.String pMavenVersion)
Set the version of the Maven libraries to specify in the dependencies of the
mavenImport configuration. |
void |
setSettingsFile(java.lang.Object pFile)
Set the Maven settings file to use when importing from a pom file.
|
void |
setWagonVersion(java.lang.String pWagonVersion) |
getProject, getProjectLoggerpublic MavenImportExtension(org.gradle.api.Project pProject,
org.gradle.api.artifacts.Configuration pConfiguration)
MavenImportExtension.pProject - The project that owns the extension.pConfiguration - The mavenImport configuration.java.lang.NullPointerException - if any of the parameters is null.public java.io.File getSettingsFile()
public void setSettingsFile(java.lang.Object pFile)
pFile - The settings file, possibly nullpublic java.lang.String getMavenVersion()
mavenImport configuration.public void setMavenVersion(java.lang.String pMavenVersion)
mavenImport configuration.pMavenVersion - The Maven library version. Passing null will cause the default value to
be returned from getMavenVersion.public java.lang.String getAetherVersion()
mavenImport configuration.public void setAetherVersion(java.lang.String pAetherVersion)
public java.lang.String getWagonVersion()
mavenImport configuration.public void setWagonVersion(java.lang.String pWagonVersion)
public org.gradle.api.file.FileCollection getMavenClassPath()
mavenImport configuration.public void setMavenClassPath(org.gradle.api.file.FileCollection pMavenClassPath)
public org.gradle.api.artifacts.repositories.ArtifactRepository getClassPathRepository()
mavenImport
configuration.public void setClassPathRepository(java.lang.Object pRepository)
mavenImport
configuration.pRepository - An ArtifactRepository instance or a Closure or
Supplier that returns an ArtifactRepository instance.public java.util.Map<java.lang.String,java.lang.String> getScopeToConfiguration()