|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.publish.Publicationorg.gradle.api.Named
org.gradle.api.publish.maven.MavenPublication
@Incubating @HasInternalProtocol public interface MavenPublication extends Publication
A MavenPublication is the representation/configuration of how Gradle should publish something in Maven format. The "maven-publish" plugin creates one MavenPublication named "maven" in the project's publishing.publications container. This publication is configured to publish all of the project's visible configurations (i.e. Project.getConfigurations).
The Maven POM identifying attributes are mapped as follows:
The ability to add multiple publications and finely configure publications will be added in future Gradle versions.
Method Summary | |
---|---|
MavenPom
|
getPom()
The POM that will be published. |
void
|
pom(Action configure)
Configures the POM that will be published. |
Methods inherited from interface Named | |
---|---|
getName |
Method Detail |
---|
public MavenPom getPom()
public void pom(Action configure)
configure
- The configuration action.
Gradle API 1.4-rc-2