Package org.gradle.api.publish.ivy
Schnittstelle IvyArtifactSet
- Alle Superschnittstellen:
Collection<IvyArtifact>,DomainObjectCollection<IvyArtifact>,DomainObjectSet<IvyArtifact>,Iterable<IvyArtifact>,Set<IvyArtifact>
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"
})
- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungCreates and adds aIvyArtifactto the set.artifact(Object source, Action<? super IvyArtifact> config) Creates and adds aIvyArtifactto the set, which is configured by the associated action.Von Schnittstelle geerbte Methoden java.util.Collection
parallelStream, removeIf, stream, toArrayVon Schnittstelle geerbte Methoden org.gradle.api.DomainObjectCollection
addAllLater, addLater, all, all, configureEach, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withTypeVon Schnittstelle geerbte Methoden org.gradle.api.DomainObjectSet
findAll, matching, matching, withType
-
Methodendetails
-
artifact
Creates and adds aIvyArtifactto the set. The semantics of this method are the same asIvyPublication.artifact(Object).- Parameter:
source- The source of the artifact content.
-
artifact
Creates and adds aIvyArtifactto the set, which is configured by the associated action. The semantics of this method are the same asIvyPublication.artifact(Object, Action).- Parameter:
source- The source of the artifact.config- An action to configure the values of the constructedIvyArtifact.
-