Table of Contents
| API Documentation: | IvyArtifactSet |
|---|
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"
})
| Method | Description |
artifact(source) | Creates and adds a |
artifact(source, config) | Creates and adds a |
IvyArtifact artifact(Object source)
Creates and adds a IvyArtifact to the set.
The semantics of this method are the same as IvyPublication.artifact(java.lang.Object).
IvyArtifact artifact(Object source, Action<? super IvyArtifact> config)
Action<? super IvyArtifact>Creates and adds a IvyArtifact to the set, which is configured by the associated action.
The semantics of this method are the same as IvyPublication.artifact(java.lang.Object, org.gradle.api.Action).