api / org.gradle.api.artifacts.maven / MavenPom / withXml

withXml

abstract fun withXml(closure: Closure<Any>): MavenPom

Adds a closure to be called when the POM XML has been created. The XML is passed to the closure as a parameter in form of a org.gradle.api.XmlProvider. The action can modify the XML.

Parameters

closure - The closure to execute when the POM XML has been created.

Return
this

abstract fun withXml(action: Action<XmlProvider>): MavenPom

Adds an action to be called when the POM XML has been created. The XML is passed to the action as a parameter in form of a org.gradle.api.XmlProvider. The action can modify the XML.

Parameters

action - The action to execute when the POM XML has been created.

Return
this