gradle
8.5

# ResolvableDependencies

interface ResolvableDependencies : ArtifactView(source)

A set of Dependency objects which can be resolved to a set of files. There are various methods on this type that you can use to get the result in different forms:

- 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.
- getArtifacts returns an ArtifactCollection that provides the files with additional metadata.

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<out Any>)
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<out Any>): 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<out Any>)
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
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.