abstract fun addFilter(name: String, publishFilter: PublishFilter): MavenPom
If you want to deploy more than one artifact you need to define filters to select each of those artifacts. The method returns a POM object associated with this filter, that allows you to customize the POM generation for the artifact selected by the filter.
publishFilter
- The filter to use
Return
The POM associated with the filter
abstract fun addFilter(name: String, filter: Closure<Any>): MavenPom
Adds a publish filter.
Return
The Maven POM associated with the closure
See Also
PublishFilterPomFilterContainer#addFilter(String, org.gradle.api.artifacts.maven.PublishFilter)