api / org.gradle.platform.base / GeneralComponentSpec

GeneralComponentSpec

@Incubating 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.

Inherited Functions

getBinaries

abstract fun getBinaries(): ModelMap<BinarySpec>

The variants produced for this component spec.

getProjectPath

abstract fun getProjectPath(): String

The path to the project containing this component.

getSources

abstract fun getSources(): ModelMap<LanguageSourceSet>

The source sets for this component.

Inheritors

ApplicationSpec

interface ApplicationSpec : GeneralComponentSpec

A specification of a org.gradle.platform.base.Application.

BaseComponentSpec

open class BaseComponentSpec : DefaultComponentSpec, GeneralComponentSpec

Base class that may be used for custom GeneralComponentSpec implementations. However, it is generally better to use an interface annotated with org.gradle.model.Managed and not use an implementation class at all.

LibrarySpec

interface LibrarySpec : GeneralComponentSpec

A specification of a org.gradle.platform.base.Library.

TestSuiteSpec

interface TestSuiteSpec : GeneralComponentSpec

A component representing a suite of tests that will be built and executed together.