gradle
8.4

# ResolvedComponentResult

interface ResolvedComponentResult : ComponentResult(source)

Represents a component instance in the resolved dependency graph. Provides some basic identity and dependency information about the component.

## Functions

getDependencies
Link copied to clipboard
abstract fun getDependencies(): Set<out DependencyResult>
Returns the dependencies of this component.
getDependenciesForVariant
Link copied to clipboard
abstract fun getDependenciesForVariant(variant: ResolvedVariantResult): List<DependencyResult>
Returns the dependencies of a specific variant.
getDependents
Link copied to clipboard
abstract fun getDependents(): Set<out ResolvedDependencyResult>
Returns the incoming dependencies of this component.
getId
Link copied to clipboard
abstract fun getId(): ComponentIdentifier
getModuleVersion
Link copied to clipboard
@Nullable
abstract fun getModuleVersion(): ModuleVersionIdentifier
Returns the module version which this component belongs to, if any.
getSelectionReason
Link copied to clipboard
abstract fun getSelectionReason(): ComponentSelectionReason
Returns the reason why this particular component was selected in the result.
getVariants
Link copied to clipboard
abstract fun getVariants(): List<ResolvedVariantResult>
Returns the variants that were selected for this component.