# ResolvableDependencies

interface ResolvableDependencies : ArtifactView(source)

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

afterResolve
Link copied to clipboard
abstract fun afterResolve(@DelegatesTo(value = ResolvableDependencies::class) action: Closure)
abstract fun afterResolve(action: Action<in ResolvableDependencies>)
Adds an action to be executed after the dependencies of this set have been resolved.
artifactView
Link copied to clipboard
abstract fun artifactView(configAction: Action<in ArtifactView.ViewConfiguration>): ArtifactView
Returns a builder that can be used to define and access a filtered view of the resolved artifacts.
beforeResolve
Link copied to clipboard
abstract fun beforeResolve(@DelegatesTo(value = ResolvableDependencies::class) action: Closure)
abstract fun beforeResolve(action: Action<in ResolvableDependencies>)
Adds an action to be executed before the dependencies in this set are resolved.
getArtifacts
Link copied to clipboard
abstract fun getArtifacts(): ArtifactCollection
Returns the resolved artifacts, performing the resolution if required.
getAttributes
Link copied to clipboard
abstract fun getAttributes(): AttributeContainer
Returns the attributes
getDependencies
Link copied to clipboard
abstract fun getDependencies(): DependencySet
Returns the set of dependencies which will be resolved.
getDependencyConstraints
Link copied to clipboard
abstract fun getDependencyConstraints(): DependencyConstraintSet
Returns the set of dependency constraints which will be considered during resolution.
getFiles
Link copied to clipboard
abstract fun getFiles(): FileCollection
Returns a FileCollection which contains the resolved set of files.
getName
Link copied to clipboard
abstract fun getName(): String
Returns the name of this set.
getPath
Link copied to clipboard
abstract fun getPath(): String
Returns the path of this set.
getResolutionResult
Link copied to clipboard
abstract fun getResolutionResult(): ResolutionResult
Returns the resolved dependency graph, performing the resolution lazily.