api / org.gradle.api.artifacts.component / ProjectComponentSelector

ProjectComponentSelector

@Incubating interface ProjectComponentSelector : ComponentSelector

Criteria for selecting a component instance that is built as part of the current build.

Since
1.10

Functions

getBuildName

abstract fun getBuildName(): String

The name of the build to select a project from.

getProjectPath

abstract fun getProjectPath(): String

The path of the project 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.