api / org.gradle.api.artifacts.result / ResolvedComponentResult / getId

getId

abstract fun getId(): ComponentIdentifier

Returns the identifier of this component. This can be used to uniquely identify the component within the current build, but it is not necessarily unique between different builds.

The return type is declared as an opaque ComponentIdentifier, however the identifier may also implement one of the following interfaces:

Return
the identifier of this component