api / org.gradle.api.artifacts.component / ComponentIdentifier

ComponentIdentifier

@Incubating interface ComponentIdentifier

An opaque immutable identifier for a component instance. There are various sub-interfaces that expose specific details about the identifier.

Since
1.10

Functions

getDisplayName

abstract fun getDisplayName(): String

Returns a human-consumable display name for this identifier.

Inheritors

LibraryBinaryIdentifier

interface LibraryBinaryIdentifier : ComponentIdentifier

An identifier for a library instance that is built as part of the current build.

ModuleComponentIdentifier

interface ModuleComponentIdentifier : ComponentIdentifier

An identifier for a component instance which is available as a module version.

ProjectComponentIdentifier

interface ProjectComponentIdentifier : ComponentIdentifier

An identifier for a component instance that is built as part of the current build.