api / org.gradle.api.artifacts.component / ProjectComponentIdentifier

ProjectComponentIdentifier

@Incubating interface ProjectComponentIdentifier : ComponentIdentifier

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

Since
1.10

Functions

getBuild

abstract fun getBuild(): BuildIdentifier

Identifies the build that contains the project that produces this component.

getProjectName

abstract fun getProjectName(): String

Returns the simple name of the project that produces this component.

getProjectPath

abstract fun getProjectPath(): String

Returns the path of the project that produces this component. This path is relative to the containing build, so for example will return ':' for the root project of a build.

Inherited Functions

getDisplayName

abstract fun getDisplayName(): String

Returns a human-consumable display name for this identifier.