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 Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum 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 Summary
Modifier and TypeMethodDescriptionstatic ComponentSelectionCause
Returns 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
-
ROOT
This component was selected because it's the root component. -
REQUESTED
This component was selected because it was requested directly. -
SELECTED_BY_RULE
This component was selected by a rule. -
FORCED
This component was selected because selection was forced on this version. -
CONFLICT_RESOLUTION
This component was selected between several candidates during conflict resolution. -
COMPOSITE_BUILD
This component was selected as a participant of a composite. -
REJECTION
This component was selected because another version was rejected by a rule -
CONSTRAINT
This component was selected because of a dependency constraint -
BY_ANCESTOR
This component was selected because it was requested by a parent with a strict version.- Since:
- 6.0
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-
getDefaultReason
-