Package org.gradle.api.artifacts.result
Enum ComponentSelectionCause
- All Implemented Interfaces:
- Serializable,- Comparable<ComponentSelectionCause>,- java.lang.constant.Constable
The possible component selection causes. There are a limited number of causes, but each of them
 can be provided with a custom description, via 
ComponentSelectionDescriptor.- Since:
- 4.6
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionThis component was selected because it was requested by a parent with a strict version.This component was selected as a participant of a composite.This component was selected between several candidates during conflict resolution.This component was selected because of a dependency constraintThis component was selected because selection was forced on this version.This component was selected because another version was rejected by a ruleThis component was selected because it was requested directly.This component was selected because it's the root component.This component was selected by a rule.
- 
Method SummaryModifier and TypeMethodDescriptionstatic ComponentSelectionCauseReturns the enum constant of this type with the specified name.static ComponentSelectionCause[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
ROOTThis component was selected because it's the root component.
- 
REQUESTEDThis component was selected because it was requested directly.
- 
SELECTED_BY_RULEThis component was selected by a rule.
- 
FORCEDThis component was selected because selection was forced on this version.
- 
CONFLICT_RESOLUTIONThis component was selected between several candidates during conflict resolution.
- 
COMPOSITE_BUILDThis component was selected as a participant of a composite.
- 
REJECTIONThis component was selected because another version was rejected by a rule
- 
CONSTRAINTThis component was selected because of a dependency constraint
- 
BY_ANCESTORThis component was selected because it was requested by a parent with a strict version.- Since:
- 6.0
 
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getDefaultReason
 
-