@Incubating interface ComponentSelectionReason
Answers the question why a component was selected during the dependency resolution.
Since
1.3
abstract fun getDescription(): String
Returns a human-consumable description of this selection reason. |
|
abstract fun getDescriptions(): MutableList<ComponentSelectionDescriptor>
Returns a list of descriptions of the causes that led to the selection of this component. |
|
abstract fun isCompositeSubstitution(): Boolean
Informs whether the selected component is a project substitute from a build participating in in a composite build. |
|
abstract fun isConflictResolution(): Boolean
Informs whether the component was selected by conflict resolution. For more information about Gradle's conflict resolution please refer to the user guide. contains information about conflict resolution and includes means to configure it. |
|
abstract fun isConstrained(): Boolean
Informs whether the selected component version has been influenced by a dependency constraint. |
|
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. |
|
abstract fun isForced(): Boolean
Informs whether the component was forced. Users can force components via org.gradle.api.artifacts.ResolutionStrategy or when declaring dependencies (see ). |
|
abstract fun isSelectedByRule(): Boolean
Informs whether the component was selected by the dependency substitution rule. Users can configure dependency substitution rules via |