gradle
8.4

# ComponentSelector

interface ComponentSelector(source)

Represents some opaque criteria used to select a component instance during dependency resolution. Various sub-interfaces expose specific details about the criteria.

#### Inheritors

LibraryComponentSelector
ProjectComponentSelector
ModuleComponentSelector

## Functions

getAttributes
Link copied to clipboard
abstract fun getAttributes(): AttributeContainer
The attributes of the module to select the component from.
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
Returns a human-consumable display name for this selector.
getRequestedCapabilities
Link copied to clipboard
abstract fun getRequestedCapabilities(): List<Capability>
The requested capabilities.
matchesStrictly
Link copied to clipboard
abstract fun matchesStrictly(identifier: ComponentIdentifier): Boolean
Checks if selector matches component identifier.