api / org.gradle.api.artifacts.result / ResolvedComponentResult / getSelectionReason

getSelectionReason

abstract fun getSelectionReason(): ComponentSelectionReason

Returns the reason why this particular component was selected in the result. Useful if multiple candidate components were found during dependency resolution.

Return
the reason for selecting the component