public class MavenPluginConvention extends Object
Properties and methods added by the MavenPlugin.
| Constructor and description |
|---|
MavenPluginConvention
(org.gradle.api.internal.project.ProjectInternal project, org.gradle.api.publication.maven.internal.MavenFactory mavenFactory) |
| Type | Name 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(groovy.lang.Closure configureClosure)Creates and configures a new MavenPom. |
void |
setConf2ScopeMappings(Conf2ScopeMappingContainer conf2ScopeMappings) |
void |
setMavenPomDir(Object pomDir)Sets the directory to generate Maven POMs into. |
Returns the set of rules for how to map Gradle dependencies to Maven scopes.
Returns the directory to generate Maven POMs into.
Creates and configures a new MavenPom. The given closure is executed to configure the new POM instance.
configureClosure - The closure to use to configure the POM instance.Sets the directory to generate Maven POMs into.
pomDir - The new POM directory. Evaluated as per Project.file.