api / org.gradle.platform.base / VariantComponent

VariantComponent

@Incubating interface VariantComponent : ModelElement

A component that has one or more mutually exclusive variants.

Functions

getName

abstract fun getName(): String

getVariants

abstract fun getVariants(): MutableIterable<Binary>

The variants of this component.

Inherited Functions

getDisplayName

abstract fun getDisplayName(): String

Returns a human-consumable display name for this element.

Inheritors

VariantComponentSpec

interface VariantComponentSpec : ComponentSpec, VariantComponent

Represents a component spec that is made up of one or more mutually exclusive variants.