docs.gradle.org

Interface DependencyResult

All Known Subinterfaces:
ResolvedDependencyResult, UnresolvedDependencyResult

public interface DependencyResult

An edge in the dependency graph. Provides information about the origin of the dependency and the requested component.

See Also:
  • Method Summary

    Modifier and Type

    Method

    Description

    getFrom()

    Returns the origin of the dependency.

    Returns the requested component.

    boolean

    Indicates if this dependency edge originated from a dependency constraint.

  • Method Details

    • getRequested

      Returns the requested component.

      The return type is declared as an opaque ComponentSelector, however the selector may also implement one of the following interfaces:

      Returns:
      the requested component
    • getFrom

      Returns the origin of the dependency.

      Returns:
      the origin of the dependency
    • isConstraint

      boolean isConstraint()

      Indicates if this dependency edge originated from a dependency constraint.

      Returns:
      true if the dependency is a constraint.
      Since:
      5.1

Read the original on docs.gradle.org ↗