|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Incubating public interface MavenPublication
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:
groupId - project.groupartifactId - project.nameversion - project.versionThe ability to add multiple publications and finely configure publications will be added in future Gradle versions.
MavenPom.withXml(org.gradle.api.Action) method
of the POM returned via the getPom() method, or directly by an action (or closure) passed into pom(org.gradle.api.Action).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.gradle.api.Named |
|---|
Named.Namer |
| Method Summary | |
|---|---|
MavenPom |
getPom()
The POM that will be published. |
void |
pom(Action<? super MavenPom> configure)
Configures the POM that will be published. |
| Methods inherited from interface org.gradle.api.Named |
|---|
getName |
| Method Detail |
|---|
MavenPom getPom()
void pom(Action<? super MavenPom> configure)
getPom() result. This method also accepts a closure argument, by type coercion.
configure - The configuration action.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||