@Incubating public interface IvyArtifactSet extends DomainObjectSet<IvyArtifact>
IvyArtifact
s to be included in an IvyPublication
.
Being a DomainObjectSet
, a IvyArtifactSet
provides convenient methods for querying, filtering, and applying actions to the set of IvyArtifact
s.
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" })
DomainObjectSet
修飾子とタイプ | メソッドと説明 |
---|---|
IvyArtifact |
artifact(Object source)
Creates and adds a
IvyArtifact to the set. |
IvyArtifact |
artifact(Object source,
Action<? super IvyArtifact> config)
Creates and adds a
IvyArtifact to the set, which is configured by the associated action. |
findAll, matching, matching, withType
all, all, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withType
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
IvyArtifact artifact(Object source)
IvyArtifact
to the set.
The semantics of this method are the same as IvyPublication.artifact(Object)
.source
- The source of the artifact content.IvyArtifact artifact(Object source, Action<? super IvyArtifact> config)
IvyArtifact
to the set, which is configured by the associated action.
The semantics of this method are the same as IvyPublication.artifact(Object, Action)
.source
- The source of the artifact.config
- An action to configure the values of the constructed IvyArtifact
.