PomPlugin extension container. Not used as extension (project.extensions), but as convention (project.conventions) because actual closure is structure free may define any pom sections (free xml).
Example usage:
pom { licenses { license { name "The MIT License" } } developers { developer { id "dev1" name "Dev1 Name" email "dev1@email.com" } } }Only one pom configuration may be defined: if multiple pom configurations defined, only the last one will be appliedIf manual pom modification is required:
withPomXml convention usage is equivalent to maven-publish plugin withXml closure, but without need to call asNode() because node is already provided as parameter.withPomXml { it.appendNode('description', 'A demonstration of maven POM customization') }
| Type | Name and description |
|---|---|
groovy.lang.Closure |
config |
groovy.lang.Closure |
xmlModifier |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
pom(groovy.lang.Closure config)@param config user pom |
|
void |
withPomXml(groovy.lang.Closure modifier)Modification closure is called just after user pom merge. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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() |