api / org.gradle.api.artifacts.maven / PomFilterContainer / pom

pom

abstract fun pom(name: String): MavenPom

Returns the POM associated with a filter added with #addFilter(String, org.gradle.api.artifacts.maven.PublishFilter).

Parameters

name - The name of the filter.

abstract fun pom(name: String, configureClosure: Closure<Any>): MavenPom

Configures a POM by a closure. The closure statements are delegated to the POM object associated with the given name.

Return
The POM object associated with the given name.

See Also
PomFilterContainer#pom(String)

abstract fun pom(configureClosure: Closure<Any>): MavenPom

Configures the default POM by a closure. The closure statements are delegated to the default POM.

Return
The default POM.

See Also
PomFilterContainer#getPom()

abstract fun pom(name: String, configureAction: Action<in MavenPom>): MavenPom

Configures a POM by an action. The action is executed against the POM object associated with the given name.

Return
The POM object associated with the given name.

See Also
PomFilterContainer#pom(String)

Since
4.2

abstract fun pom(configureAction: Action<in MavenPom>): MavenPom

Configures the default POM by an action.

Return
The default POM.

See Also
PomFilterContainer#getPom()

Since
4.2