ComponentResult
public interface ResolvedComponentResult extends ComponentResult
Modifier and Type | Method | Description |
---|---|---|
java.util.Set<? extends DependencyResult> |
getDependencies() |
Returns the dependencies of this component.
|
java.util.List<DependencyResult> |
getDependenciesForVariant(ResolvedVariantResult variant) |
Returns the dependencies of a specific variant.
|
java.util.Set<? extends ResolvedDependencyResult> |
getDependents() |
Returns the incoming dependencies of this component.
|
ModuleVersionIdentifier |
getModuleVersion() |
Returns the module version which this component belongs to, if any.
|
ComponentSelectionReason |
getSelectionReason() |
Returns the reason why this particular component was selected in the result.
|
ResolvedVariantResult |
getVariant() |
Deprecated.
Use
getVariants() instead} |
java.util.List<ResolvedVariantResult> |
getVariants() |
Returns the variants that were selected for this component.
|
getId
java.util.Set<? extends DependencyResult> getDependencies()
Returns the dependencies of this component. Includes resolved and unresolved dependencies (if any).
The elements of the returned collection are declared as DependencyResult
, however the dependency instances will also implement one of the
following instances:
ResolvedDependencyResult
for dependencies which were successfully resolved.UnresolvedDependencyResult
for dependencies which could not be resolved for some reason.java.util.Set<? extends ResolvedDependencyResult> getDependents()
ComponentSelectionReason getSelectionReason()
@Nullable ModuleVersionIdentifier getModuleVersion()
null
if this component has no associated module version.@Deprecated ResolvedVariantResult getVariant()
getVariants()
instead}java.util.List<ResolvedVariantResult> getVariants()
java.util.List<DependencyResult> getDependenciesForVariant(ResolvedVariantResult variant)
method
doesn't give access to each
variant individual dependencies.
The variant must be a selected variant of this component.
variant
- the variant to find the dependencies forjava.lang.IllegalStateException
- if the variant is not a selected variant of this component