org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider
public class MavenPluginConvention extends Object implements org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider
MavenPlugin
.Constructor | Description |
---|---|
MavenPluginConvention(org.gradle.api.internal.project.ProjectInternal project,
org.gradle.api.publication.maven.internal.MavenFactory mavenFactory) |
Modifier and Type | Method | Description |
---|---|---|
Conf2ScopeMappingContainer |
getConf2ScopeMappings() |
Returns the set of rules for how to map Gradle dependencies to Maven scopes.
|
File |
getMavenPomDir() |
Returns the directory to generate Maven POMs into.
|
MavenPom |
pom() |
Creates a new
MavenPom . |
MavenPom |
pom(Closure configureClosure) |
Creates and configures a new
MavenPom . |
MavenPom |
pom(Action<? super MavenPom> configureAction) |
Creates and configures a new
MavenPom . |
void |
setConf2ScopeMappings(Conf2ScopeMappingContainer conf2ScopeMappings) |
|
void |
setMavenPomDir(File pomDir) |
Sets the directory to generate Maven POMs into.
|
void |
setMavenPomDir(Object pomDir) |
Sets the directory to generate Maven POMs into.
|
public MavenPluginConvention(org.gradle.api.internal.project.ProjectInternal project, org.gradle.api.publication.maven.internal.MavenFactory mavenFactory)
public Conf2ScopeMappingContainer getConf2ScopeMappings()
public void setConf2ScopeMappings(Conf2ScopeMappingContainer conf2ScopeMappings)
public File getMavenPomDir()
getMavenPomDir
in interface org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider
public void setMavenPomDir(File pomDir)
pomDir
- The new POM directory.public void setMavenPomDir(Object pomDir)
pomDir
- The new POM directory. Evaluated as per Project.file(Object)
.public MavenPom pom(Closure configureClosure)
MavenPom
. The given closure is executed to configure the new POM instance.configureClosure
- The closure to use to configure the POM instance.