Package org.gradle.api.artifacts
Schnittstelle ArtifactCollection
- Alle Superschnittstellen:
Iterable<ResolvedArtifactResult>
A collection of artifacts resolved for a configuration. The configuration is resolved on demand when
the collection is queried.
- Seit:
- 3.4
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungA file collection containing the files for all artifacts in this collection.Returns the resolved artifacts, performing the resolution if required.Returns any failures to resolve the artifacts for this collection.Returns the resolved artifacts as aProviderofResolvedArtifactResultinstances.Von Schnittstelle geerbte Methoden java.lang.Iterable
forEach, iterator, spliterator
-
Methodendetails
-
getArtifactFiles
FileCollection getArtifactFiles()A file collection containing the files for all artifacts in this collection. This is primarily useful to wire this artifact collection as a task input. -
getArtifacts
Set<ResolvedArtifactResult> getArtifacts()Returns the resolved artifacts, performing the resolution if required. This will resolve the artifact metadata and download the artifact files as required.- Löst aus:
ResolveException- On failure to resolve or download any artifact.
-
getResolvedArtifacts
Provider<Set<ResolvedArtifactResult>> getResolvedArtifacts()Returns the resolved artifacts as aProviderofResolvedArtifactResultinstances. The returnedProvideris live, and tracks the producer tasks of this artifact collection. The provider will resolve the artifact metadata and download the artifact files as required.- Seit:
- 7.4
-
getFailures
Collection<Throwable> getFailures()Returns any failures to resolve the artifacts for this collection.- Gibt zurück:
- A collection of exceptions, one for each failure in resolution.
- Seit:
- 4.0
-