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.

ComponentWithVariants

Represents a SoftwareComponent that provides one or more mutually exclusive children, or variants.

Since

4.3

Functions

Link copied to clipboard
abstract fun getName(): String
The object's name.
Link copied to clipboard
abstract fun getVariants(): Set<out SoftwareComponent>
Returns the variants.