Interface IvyArtifactSet

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

@Incubating public interface IvyArtifactSet extends DomainObjectSet<IvyArtifact>
A Collection of IvyArtifacts to be included in an IvyPublication. Being a DomainObjectSet, a IvyArtifactSet provides convenient methods for querying, filtering, and applying actions to the set of IvyArtifacts.
apply plugin: 'ivy-publish'

def publication = publishing.publications.create("my-pub", IvyPublication)
def artifacts = publication.artifacts

artifacts.matching({
    it.type == "source"
}).all({
    it.extension = "src.jar"
})
See Also: