Resolvable Dependencies
The primary view of the results of resolving a Configuration. Results can be obtained in several forms, each catering to different use cases:
- getFiles returns a FileCollection that provides the result as a set of java.io.File instances.
- getResolutionResult returns a ResolutionResult that provides information about the dependency graph without downloading artifacts.
- getArtifacts returns an ArtifactCollection that provides the files with additional metadata.
- artifactView provides several APIs, which can perform lenient artifact resolution, trigger artifact transforms, or filter artifacts. Furthermore, artifact views can be used to perform variant re-selection, allowing sources and javadoc artifacts to be selected from a graph, among other things.
The dependencies are resolved once only, when the result is first requested. The result is reused and returned for subsequent calls. Once resolved, any mutation to the dependencies will result in an error.
Functions
Link copied to clipboard
Adds an action to be executed after the dependencies of this set have been resolved.
Link copied to clipboard
Returns a builder that can be used to define and access a filtered view of the resolved artifacts.
Link copied to clipboard
Adds an action to be executed before the dependencies in this set are resolved.
Link copied to clipboard
Returns the resolved artifacts, performing the resolution if required.
Link copied to clipboard
Link copied to clipboard
Returns the set of dependencies which will be resolved.
Link copied to clipboard
Returns the set of dependency constraints which will be considered during resolution.
Link copied to clipboard
Returns a FileCollection which contains the resolved set of files.
Link copied to clipboard
Returns the resolved dependency graph, performing the resolution lazily.