api / org.gradle.api.artifacts.result / ResolvedDependencyResult

ResolvedDependencyResult

@Incubating interface ResolvedDependencyResult : DependencyResult

A dependency that was resolved successfully.

Functions

getSelected

abstract fun getSelected(): ResolvedComponentResult

Returns the selected component. This may not necessarily be the same as the requested component. For example, a dynamic version may have been requested, or the version may have been substituted due to conflict resolution, or by being forced, or for some other reason.

Inherited Functions

getFrom

abstract fun getFrom(): ResolvedComponentResult

Returns the origin of the dependency.

getRequested

abstract fun getRequested(): ComponentSelector

Returns the requested component.

The return type is declared as an opaque org.gradle.api.artifacts.component.ComponentSelector, however the selector may also implement one of the following interfaces:

  • org.gradle.api.artifacts.component.ProjectComponentSelector for those dependencies that request a component from some other project in the current build.
  • org.gradle.api.artifacts.component.ModuleComponentSelector for those dependencies that request a component to be found in some repository.