gradle
8.6

# ResolutionResult

interface ResolutionResult(source)

Contains the information about the result of dependency resolution. You can use this type to determine all the component instances that are included in the resolved dependency graph, and the dependencies between them.

## Functions

allComponents
Link copied to clipboard
abstract fun allComponents(@DelegatesTo(value = ResolvedComponentResult::class) closure: Closure)
Applies given closure for each component.
abstract fun allComponents(action: Action<out Any>)
Applies given action for each component.
allDependencies
Link copied to clipboard
abstract fun allDependencies(@DelegatesTo(value = DependencyResult::class) closure: Closure)
Applies given closure for each dependency.
abstract fun allDependencies(action: Action<out Any>)
Applies given action for each dependency.
getAllComponents
Link copied to clipboard
abstract fun getAllComponents(): Set<ResolvedComponentResult>
Retrieves all instances of ResolvedComponentResult from the graph, e.g.
getAllDependencies
Link copied to clipboard
abstract fun getAllDependencies(): Set<out DependencyResult>
Retrieves all dependencies, including unresolved dependencies.
getRequestedAttributes
Link copied to clipboard
abstract fun getRequestedAttributes(): AttributeContainer
The attributes that were requested.
getRoot
Link copied to clipboard
abstract fun getRoot(): ResolvedComponentResult
Gives access to the root of resolved dependency graph.
getRootComponent
Link copied to clipboard
abstract fun getRootComponent(): Provider<ResolvedComponentResult>
Returns the root of resolved dependency graph as a Provider of ResolvedComponentResult.