public class MavenPluginConvention extends Object implements org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider
MavenPlugin
.Constructor and Description |
---|
MavenPluginConvention(org.gradle.api.internal.project.ProjectInternal project,
org.gradle.api.publication.maven.internal.MavenFactory mavenFactory) |
Modifier and Type | Method and 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 . |
void |
setConf2ScopeMappings(Conf2ScopeMappingContainer conf2ScopeMappings) |
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(Object pomDir)
pomDir
- The new POM directory. Evaluated as per Project.file(Object)
.