api / org.gradle.api / CheckableComponentSpec

CheckableComponentSpec

@Incubating interface CheckableComponentSpec : ComponentSpec

A ComponentSpec that is directly checkable via a specified task.

Functions

checkedBy

abstract fun checkedBy(vararg tasks: Any): Unit

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

getCheckTask

abstract fun getCheckTask(): Task

Returns the task responsible for checking this component.

setCheckTask

abstract fun setCheckTask(checkTask: Task): Unit

Specifies the task responsible for checking this component.

Inherited Functions

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.