Package org.gradle.api.artifacts.result
Interface ArtifactResolutionResult
-
public interface ArtifactResolutionResultThe result of executing an artifact resolution query.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<ComponentResult>getComponents()Return a set ofComponentResultinstances representing all requested components.java.util.Set<ComponentArtifactsResult>getResolvedComponents()Return a set ofComponentResultinstances representing all successfully resolved components.
-
-
-
Method Detail
-
getComponents
java.util.Set<ComponentResult> getComponents()
Return a set of
ComponentResultinstances representing all requested components.Each element in the returned set is declared as an opaque
ComponentResult. However each element in the result will also implement one of the following interfaces:ComponentArtifactsResultfor any component that could be resolved in the set of repositories.UnresolvedComponentResultfor any component that could not be resolved from the set of repositories.
- Returns:
- the set of results for all requested components
-
getResolvedComponents
java.util.Set<ComponentArtifactsResult> getResolvedComponents()
Return a set of
ComponentResultinstances representing all successfully resolved components.Calling this method is the same as calling
getComponents()and filtering the resulting set for elements of typeComponentArtifactsResult.- Returns:
- the set of all successfully resolved components
-
-