gradle
8.3

# ArtifactCollection

interface ArtifactCollection : Iterable<T>

A collection of artifacts resolved for a configuration. The configuration is resolved on demand when the collection is queried.

## Functions

forEach
Link copied to clipboard
open fun forEach(action: Consumer<out Any>)
getArtifactFiles
Link copied to clipboard
abstract fun getArtifactFiles(): FileCollection
A file collection containing the files for all artifacts in this collection.
getArtifacts
Link copied to clipboard
abstract fun getArtifacts(): Set<ResolvedArtifactResult>
Returns the resolved artifacts, performing the resolution if required.
getFailures
Link copied to clipboard
abstract fun getFailures(): Collection<Throwable>
Returns any failures to resolve the artifacts for this collection.
getResolvedArtifacts
Link copied to clipboard
abstract fun getResolvedArtifacts(): Provider<Set<ResolvedArtifactResult>>
Returns the resolved artifacts as a Provider of ResolvedArtifactResult instances.
iterator
Link copied to clipboard
abstract fun iterator(): Iterator<T>
spliterator
Link copied to clipboard
open fun spliterator(): Spliterator<T>