Interface MavenArtifactSet

All Superinterfaces:
Collection<MavenArtifact>, DomainObjectCollection<MavenArtifact>, DomainObjectSet<MavenArtifact>, Iterable<MavenArtifact>, Set<MavenArtifact>

public interface MavenArtifactSet extends DomainObjectSet<MavenArtifact>
A Collection of MavenArtifacts to be included in a MavenPublication. Being a DomainObjectSet, a MavenArtifactSet provides convenient methods for querying, filtering, and applying actions to the set of MavenArtifacts.
 plugins {
     id 'maven-publish'
 }

 def publication = publishing.publications.create("name", MavenPublication)
 def artifacts = publication.artifacts

 artifacts.matching({
     it.classifier == "classy"
 }).all({
     it.extension = "ext"
 })
 
See Also: