Package org.gradle.api.publish.ivy
Interface IvyArtifactSet
-
- All Superinterfaces:
java.util.Collection<IvyArtifact>
,DomainObjectCollection<IvyArtifact>
,DomainObjectSet<IvyArtifact>
,java.lang.Iterable<IvyArtifact>
,java.util.Set<IvyArtifact>
public interface IvyArtifactSet extends DomainObjectSet<IvyArtifact>
A Collection ofIvyArtifact
s to be included in anIvyPublication
. Being aDomainObjectSet
, anIvyArtifactSet
provides convenient methods for querying, filtering, and applying actions to the set ofIvyArtifact
s.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:
DomainObjectSet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IvyArtifact
artifact(java.lang.Object source)
Creates and adds aIvyArtifact
to the set.IvyArtifact
artifact(java.lang.Object source, Action<? super IvyArtifact> config)
Creates and adds aIvyArtifact
to the set, which is configured by the associated action.-
Methods inherited from interface org.gradle.api.DomainObjectCollection
addAllLater, addLater, all, all, configureEach, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withType
-
Methods inherited from interface org.gradle.api.DomainObjectSet
findAll, matching, matching, withType
-
-
-
-
Method Detail
-
artifact
IvyArtifact artifact(java.lang.Object source)
Creates and adds aIvyArtifact
to the set. The semantics of this method are the same asIvyPublication.artifact(Object)
.- Parameters:
source
- The source of the artifact content.
-
artifact
IvyArtifact artifact(java.lang.Object source, Action<? super IvyArtifact> config)
Creates and adds aIvyArtifact
to the set, which is configured by the associated action. The semantics of this method are the same asIvyPublication.artifact(Object, Action)
.- Parameters:
source
- The source of the artifact.config
- An action to configure the values of the constructedIvyArtifact
.
-
-