api / org.gradle.platform.base / SourceComponentSpec

SourceComponentSpec

@Incubating interface SourceComponentSpec : ComponentSpec

Represents some component whose implementation can be represented as a collection of source files, and whose other outputs are built from this source.

Functions

getSources

abstract fun getSources(): ModelMap<LanguageSourceSet>

The source sets for this component.

Inherited Functions

getProjectPath

abstract fun getProjectPath(): String

The path to the project containing 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.