api / org.gradle.api.artifacts.component / ModuleComponentSelector

ModuleComponentSelector

@Incubating interface ModuleComponentSelector : ComponentSelector

Criteria for selecting a component instance that is available as a module version.

Since
1.10

Functions

getGroup

abstract fun getGroup(): String

The group of the module to select the component from.

getModule

abstract fun getModule(): String

The name of the module to select the component from.

getModuleIdentifier

abstract fun getModuleIdentifier(): ModuleIdentifier

The module identifier of the component. Returns the same information as #getGroup() and #getModule().

getVersion

abstract fun getVersion(): String

The version of the module to select the component from.

getVersionConstraint

abstract fun getVersionConstraint(): VersionConstraint

The version constraint of the module to select the component from.

Inherited Functions

getAttributes

abstract fun getAttributes(): AttributeContainer

The attributes of the module to select the component from. The attributes only include selector specific attributes. This means it typically doesn't include any consumer specific attribute.

getDisplayName

abstract fun getDisplayName(): String

Returns a human-consumable display name for this selector.

matchesStrictly

abstract fun matchesStrictly(identifier: ComponentIdentifier): Boolean

Checks if selector matches component identifier.