api / org.gradle.api.artifacts.maven / MavenResolver / beforeDeployment

beforeDeployment

abstract fun beforeDeployment(action: Action<in MavenDeployment>): Unit

Adds an action to be executed immediately before a deployment to this resolver. The action is executed after all artifacts have been build, including generation of the POM. The action can modify the set of artifacts to be deployed.

Parameters

action - The action to execute.

abstract fun beforeDeployment(action: Closure<Any>): Unit

Adds a closure to be executed immediately before a deployment to this resolver. The closure is passed a as a parameter. The closure is executed after all artifacts have been build, including generation of the POM. The closure can modify the set of artifacts to be deployed.

Parameters

action - The closure to execute.