# ComponentSelectionReason

interface ComponentSelectionReason

Answers the question why a component was selected during the dependency resolution.

#### Since

1.3

## Functions

getDescriptions
Link copied to clipboard
abstract fun getDescriptions(): List<ComponentSelectionDescriptor>
Returns a list of descriptions of the causes that led to the selection of this component.
isCompositeSubstitution
Link copied to clipboard
abstract fun isCompositeSubstitution(): Boolean
Informs whether the selected component is a project substitute from a build participating in a composite build.
isConflictResolution
Link copied to clipboard
abstract fun isConflictResolution(): Boolean
Informs whether the component was selected by conflict resolution.
isConstrained
Link copied to clipboard
abstract fun isConstrained(): Boolean
Informs whether the selected component version has been influenced by a dependency constraint.
isExpected
Link copied to clipboard
abstract fun isExpected(): Boolean
Informs whether the component is the requested selection of all dependency declarations, and was not replaced for some reason, such as conflict resolution.
isForced
Link copied to clipboard
abstract fun isForced(): Boolean
Informs whether the component was forced.
isSelectedByRule
Link copied to clipboard
abstract fun isSelectedByRule(): Boolean
Informs whether the component was selected by the dependency substitution rule.