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

whenConfigured

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

Adds a closure to be called when the POM has been configured. The POM is passed to the closure as a parameter.

Parameters

closure - The closure to execute when the POM has been configured.

Return
this

abstract fun whenConfigured(action: Action<MavenPom>): MavenPom

Adds an action to be called when the POM has been configured. The POM is passed to the action as a parameter.

Parameters

action - The action to execute when the POM has been configured.

Return
this