Package org.gradle.api.artifacts.result
Schnittstelle DependencyResult
- Alle bekannten Unterschnittstellen:
ResolvedDependencyResult,UnresolvedDependencyResult
public interface DependencyResult
An edge in the dependency graph. Provides information about the origin of the dependency and the requested component.
- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetFrom()Returns the origin of the dependency.Returns the requested component.booleanIndicates if this dependency edge originated from a dependency constraint.
-
Methodendetails
-
getRequested
ComponentSelector 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:ProjectComponentSelectorfor those dependencies that request a component from some other project in the current build.ModuleComponentSelectorfor those dependencies that request a component to be found in some repository.
- Gibt zurück:
- the requested component
-
getFrom
ResolvedComponentResult getFrom()Returns the origin of the dependency.- Gibt zurück:
- the origin of the dependency
-
isConstraint
boolean isConstraint()Indicates if this dependency edge originated from a dependency constraint.- Gibt zurück:
- true if the dependency is a constraint.
- Seit:
- 5.1
-