For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

CapabilitySelector

An opaque, immutable, selector for a capability of a variant.

A capability selector is attached to a org.gradle.api.artifacts.component.ComponentSelector to specify the capability of the variant that should be selected from a given component.

Since

8.11

Functions

Link copied to clipboard
abstract fun getDisplayName(): String
Returns the display name of this object.