Package org.gradle.api.plugins
Class MavenPluginConvention
java.lang.Object
org.gradle.api.plugins.MavenPluginConvention
- All Implemented Interfaces:
org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider
public class MavenPluginConvention
extends Object
implements org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider
Properties and methods added by the
MavenPlugin
.-
Constructor Summary
ConstructorDescriptionMavenPluginConvention
(org.gradle.api.internal.project.ProjectInternal project, org.gradle.api.publication.maven.internal.MavenFactory mavenFactory) -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of rules for how to map Gradle dependencies to Maven scopes.Returns the directory to generate Maven POMs into.pom()
Creates a newMavenPom
.Creates and configures a newMavenPom
.Creates and configures a newMavenPom
.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.
-
Constructor Details
-
MavenPluginConvention
public MavenPluginConvention(org.gradle.api.internal.project.ProjectInternal project, org.gradle.api.publication.maven.internal.MavenFactory mavenFactory)
-
-
Method Details
-
getConf2ScopeMappings
Returns the set of rules for how to map Gradle dependencies to Maven scopes.- Returns:
- The mapping rules.
-
setConf2ScopeMappings
-
getMavenPomDir
Returns the directory to generate Maven POMs into.- Specified by:
getMavenPomDir
in interfaceorg.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider
-
setMavenPomDir
Sets the directory to generate Maven POMs into.- Parameters:
pomDir
- The new POM directory.- Since:
- 4.0
-
setMavenPomDir
Sets the directory to generate Maven POMs into.- Parameters:
pomDir
- The new POM directory. Evaluated as perProject.file(Object)
.
-
pom
Creates a newMavenPom
.- Returns:
- The POM instance.
-
pom
Creates and configures a newMavenPom
. The given closure is executed to configure the new POM instance.- Parameters:
configureClosure
- The closure to use to configure the POM instance.- Returns:
- The POM instance.
-
pom
Creates and configures a newMavenPom
. The given action is executed to configure the new POM instance.- Parameters:
configureAction
- The action to use to configure the POM instance.- Returns:
- The POM instance.
- Since:
- 4.2
-