api / org.gradle.api.artifacts.result / ComponentArtifactsResult

ComponentArtifactsResult

@Incubating interface ComponentArtifactsResult : ComponentResult

The result of successfully resolving a component with a set of artifacts.

Since
2.0

Functions

getArtifacts

abstract fun getArtifacts(type: Class<out Artifact>): MutableSet<ArtifactResult>

Returns the artifacts of the specified type that belong to this component. Includes resolved and unresolved artifacts (if any).

The elements of the returned collection are declared as ArtifactResult, however the artifact instances will also implement one of the following instances:

  • ResolvedArtifactResult for artifacts which were successfully resolved.
  • UnresolvedArtifactResult for artifacts which could not be resolved for some reason.

Inherited Functions

getId

abstract fun getId(): ComponentIdentifier

Returns an identifier for the requested component.