Groovy Documentation

org.gradle.api.plugins
[Java] Class MavenPluginConvention

java.lang.Object
  org.gradle.api.plugins.MavenPluginConvention
All Implemented Interfaces:
org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider

public class MavenPluginConvention
extends java.lang.Object

Properties and methods added by the MavenPlugin.

Authors:
Hans Dockter


Constructor Summary
MavenPluginConvention(org.gradle.api.internal.project.ProjectInternal project, org.gradle.api.publication.maven.internal.MavenFactory mavenFactory)

 
Method Summary
Conf2ScopeMappingContainer getConf2ScopeMappings()

Returns the set of rules for how to map Gradle dependencies to Maven scopes.

java.io.File getMavenPomDir()

Returns the directory to generate Maven POMs into.

java.io.File getPomDir()

Returns the directory to generate Maven POMs into.

java.lang.String getPomDirName()

Returns the name of the directory to generate Maven POMs into, relative to the build directory.

MavenPom pom()

Creates a new MavenPom.

MavenPom pom(groovy.lang.Closure configureClosure)

Creates and configures a new MavenPom.

void setConf2ScopeMappings(Conf2ScopeMappingContainer conf2ScopeMappings)

void setMavenPomDir(java.lang.Object pomDir)

Sets the directory to generate Maven POMs into.

void setPomDirName(java.lang.String pomDirName)

Sets the name of the directory to generate Maven POMs into, relative to the build directory.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

MavenPluginConvention

public MavenPluginConvention(org.gradle.api.internal.project.ProjectInternal project, org.gradle.api.publication.maven.internal.MavenFactory mavenFactory)


 
Method Detail

getConf2ScopeMappings

public Conf2ScopeMappingContainer getConf2ScopeMappings()
Returns the set of rules for how to map Gradle dependencies to Maven scopes.
Returns:
The mapping rules.


getMavenPomDir

public java.io.File getMavenPomDir()
Returns the directory to generate Maven POMs into.


getPomDir

@Deprecated
public java.io.File getPomDir()
Returns the directory to generate Maven POMs into.
deprecated:
Use getMavenPomDir() instead.


getPomDirName

@Deprecated
public java.lang.String getPomDirName()
Returns the name of the directory to generate Maven POMs into, relative to the build directory.
deprecated:
Use getMavenPomDir() instead.


pom

public MavenPom pom()
Creates a new MavenPom.
Returns:
The POM instance.


pom

public MavenPom pom(groovy.lang.Closure configureClosure)
Creates and configures a new MavenPom. 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.


setConf2ScopeMappings

public void setConf2ScopeMappings(Conf2ScopeMappingContainer conf2ScopeMappings)


setMavenPomDir

public void setMavenPomDir(java.lang.Object pomDir)
Sets the directory to generate Maven POMs into.
Parameters:
pomDir - The new POM directory. Evaluated as for Project.file.


setPomDirName

@Deprecated
public void setPomDirName(java.lang.String pomDirName)
Sets the name of the directory to generate Maven POMs into, relative to the build directory.
deprecated:
Use setMavenPomDir instead.


 

Groovy Documentation