api / org.gradle.api / BuildableComponentSpec

BuildableComponentSpec

@Incubating interface BuildableComponentSpec : Buildable, ComponentSpec

A ComponentSpec that is directly Buildable via a specified task.

Functions

builtBy

abstract fun builtBy(vararg tasks: Any): Unit

Adds tasks required to build this component. Tasks added this way are subsequently added as dependencies of this component's build task.

getBuildTask

abstract fun getBuildTask(): Task

Returns the task responsible for building this component.

hasBuildDependencies

abstract fun hasBuildDependencies(): Boolean

setBuildTask

abstract fun setBuildTask(buildTask: Task): Unit

Specifies the task responsible for building this component.

Inherited Functions

getBuildDependencies

abstract fun getBuildDependencies(): TaskDependency

Returns a dependency which contains the tasks which build this artifact. All Buildable implementations must ensure that the returned dependency object is live, so that it tracks changes to the dependencies of this buildable.

getProjectPath

abstract fun getProjectPath(): String

The path to the project containing this component.

Inheritors

BinarySpec

interface BinarySpec : BuildableComponentSpec, CheckableComponentSpec, Binary

Represents a binary that is the result of building a component.

JvmClasses

interface JvmClasses : BuildableComponentSpec

A set of classes and resources that operate together.

LanguageSourceSet

interface LanguageSourceSet : BuildableComponentSpec

A set of sources for a programming language.

PublicAssets

interface PublicAssets : BuildableComponentSpec

A set of public assets added to a binary.