# BinarySpec

@Incubating
interface BinarySpec : BuildableComponentSpec, CheckableComponentSpec, Binary(source)

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

#### Inheritors

NativeBinarySpec
TestSuiteBinarySpec
LibraryBinarySpec
ApplicationBinarySpec

## Functions

builtBy
Link copied to clipboard
abstract fun builtBy(tasks: Array<Any>)
Adds tasks required to build this component.
checkedBy
Link copied to clipboard
abstract fun checkedBy(tasks: Array<Any>)
Adds tasks required to check this component.
getBuildDependencies
Link copied to clipboard
abstract fun getBuildDependencies(): TaskDependency
Returns a dependency which contains the tasks which build this artifact.
getBuildTask
Link copied to clipboard
@Nullable
abstract fun getBuildTask(): @Nullable Task
Returns the task responsible for building this component.
getCheckTask
Link copied to clipboard
@Nullable
abstract fun getCheckTask(): @Nullable Task
Returns the task responsible for checking this component.
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
Returns a human-consumable display name for this binary.
getInputs
Link copied to clipboard
abstract fun getInputs(): DomainObjectSet<LanguageSourceSet>
Returns all inputs of the binary.
getName
Link copied to clipboard
abstract fun getName(): String
Returns the name of this element.
getProjectPath
Link copied to clipboard
abstract fun getProjectPath(): String
The path to the project containing this component.
getSources
Link copied to clipboard
abstract fun getSources(): ModelMap<LanguageSourceSet>
The sources owned by this binary.
getTasks
Link copied to clipboard
abstract fun getTasks(): BinaryTasksCollection
The set of tasks associated with this binary.
hasBuildDependencies
Link copied to clipboard
abstract fun hasBuildDependencies(): Boolean
isBuildable
Link copied to clipboard
abstract fun isBuildable(): Boolean
Can this binary be built in the current environment?
setBuildTask
Link copied to clipboard
abstract fun setBuildTask(@Nullable buildTask: @Nullable Task)
Specifies the task responsible for building this component.
setCheckTask
Link copied to clipboard
abstract fun setCheckTask(@Nullable checkTask: @Nullable Task)
Specifies the task responsible for checking this component.