api / org.gradle.api.artifacts.result / ComponentSelectionDescriptor

ComponentSelectionDescriptor

@Incubating interface ComponentSelectionDescriptor

A component selection description, which wraps a cause with an optional custom description.

Since
4.6

Functions

getCause

abstract fun getCause(): ComponentSelectionCause

Returns the cause associated with this descriptor

getDescription

abstract fun getDescription(): String

Returns a description for the selection. This may be the default description of a ComponentSelectionCause, or a custom description provided typically through a rule.