api / org.gradle.platform.base / VariantComponentSpec

VariantComponentSpec

@Incubating interface VariantComponentSpec : ComponentSpec, VariantComponent

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

Functions

getBinaries

abstract fun getBinaries(): ModelMap<BinarySpec>

The variants produced for this component spec.

Inherited Functions

getProjectPath

abstract fun getProjectPath(): String

The path to the project containing this component.

getVariants

abstract fun getVariants(): MutableIterable<Binary>

The variants of this component.

Inheritors

GeneralComponentSpec

interface GeneralComponentSpec : ComponentSpec, SourceComponentSpec, VariantComponentSpec

A general purpose component specification, that can be used to represent some software component built from source and producing multiple output variants.

PlatformAwareComponentSpec

interface PlatformAwareComponentSpec : VariantComponentSpec

Defines Platform specific operations for ComponentSpecs