Ivy Artifact Set
A Collection of IvyArtifacts to be included in an IvyPublication. Being a DomainObjectSet, an IvyArtifactSet
provides convenient methods for querying, filtering, and applying actions to the set of IvyArtifacts.
plugins {
id '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
Functions
Returns a collection containing the objects in this collection of the given type. The returned collection is live, so that when matching objects are later added to this collection, they are also visible in the filtered collection.
Returns a collection containing the objects in this collection of the given type. Equivalent to calling withType(type).all(configureAction)
.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.DomainObjectCollection.withType.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.DomainObjectSet.withType.