ResolvedDependencyResult (Gradle API 9.6.1)
Description: declaration: package: org.gradle.api.artifacts.result, interface: ResolvedDependencyResult

Package org.gradle.api.artifacts.result

# Interface ResolvedDependencyResult

All Superinterfaces:
  `DependencyResult`

public interface ResolvedDependencyResult extends DependencyResult
A dependency that was resolved successfully.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ResolvedVariantResult`
  `getResolvedVariant()`
  Returns the resolved variant for this dependency.
  `ResolvedComponentResult`
  `getSelected()`
  Returns the selected component.

  ### Methods inherited from interface org.gradle.api.artifacts.result.DependencyResult

  `getFrom, getRequested, isConstraint`

- ## Method Details

  - ### getSelected

    ResolvedComponentResult getSelected()
    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.

  - ### getResolvedVariant

    ResolvedVariantResult getResolvedVariant()
    Returns the resolved variant for this dependency.
    Since:
      5.6