abstract fun setFilter(defaultFilter: PublishFilter): Unit
Sets the default filter to be used. This filter is active if no custom filters have been added (see #addFilter(String, org.gradle.api.artifacts.maven.PublishFilter)
). If at least one custom filter has been added the default filter is not used any longer.
The default for this property is PublishFilter#ALWAYS_ACCEPT
. If there is only one artifact you are fine with this filter. If there is more than one artifact, deployment will lead to an exception, if you don't specify a filter that selects the artifact to deploy. If you want to deploy more than one artifact you have to use the (see #addFilter(String, org.gradle.api.artifacts.maven.PublishFilter)
method.
See Also
#getFilter()