Interface ComponentSelectionReason
Answers the question why a component was selected during the dependency resolution.
- Since:
- 1.3
-
Method Summary
Modifier and TypeMethodDescriptionReturns a human-consumable description of this selection reason.booleanInforms whether the component was selected by conflict resolution.booleanInforms whether the component is the requested selection of all dependency declarations, and was not replaced for some reason, such as conflict resolution.booleanisForced()Informs whether the component was forced.booleanInforms whether the component was selected by the dependency substitution rule.
-
Method Details
-
isForced
boolean isForced()Informs whether the component was forced. Users can force components viaResolutionStrategyor when declaring dependencies (seeDependencyHandler). -
isConflictResolution
boolean isConflictResolution()Informs whether the component was selected by conflict resolution. For more information about Gradle's conflict resolution please refer to the user guide.ResolutionStrategycontains information about conflict resolution and includes means to configure it. -
isSelectedByRule
boolean isSelectedByRule()Informs whether the component was selected by the dependency substitution rule. Users can configure dependency substitution rules viaResolutionStrategy.getDependencySubstitution()- Since:
- 1.4
-
isExpected
boolean isExpected()Informs whether the component is the requested selection of all dependency declarations, and was not replaced for some reason, such as conflict resolution.- Since:
- 1.11
-
getDescription
String getDescription()Returns a human-consumable description of this selection reason.
-