@Incubating interface BinarySpec : BuildableComponentSpec, CheckableComponentSpec, Binary
Represents a binary that is the result of building a component.
abstract fun getInputs(): DomainObjectSet<LanguageSourceSet>
Returns all inputs of the binary. This includes source sets owned by the binary, and other source sets created elsewhere (e.g. inherited from the binary's component). |
|
abstract fun getSources(): ModelMap<LanguageSourceSet>
The sources owned by this binary. |
|
abstract fun getTasks(): BinaryTasksCollection
The set of tasks associated with this binary. |
|
abstract fun isBuildable(): Boolean
Can this binary be built in the current environment? |
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 |
|
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 |
|
abstract fun getBuildTask(): Task
Returns the task responsible for building this component. |
|
abstract fun getCheckTask(): Task
Returns the task responsible for checking this component. |
|
abstract fun hasBuildDependencies(): Boolean |
|
abstract fun setBuildTask(buildTask: Task): Unit
Specifies the task responsible for building this component. |
|
abstract fun setCheckTask(checkTask: Task): Unit
Specifies the task responsible for checking this component. |
interface ApplicationBinarySpec : BinarySpec
A binary produced from a `org.gradle.platform.base.ApplicationSpec`. |
|
interface JvmBinarySpec : BinarySpec
Represents a binary artifact that is the result of building a jvm component. |
|
interface LibraryBinarySpec : BinarySpec
A binary produced from a `org.gradle.platform.base.LibrarySpec`. |
|
interface NativeBinarySpec : BinarySpec
Represents a binary artifact that is the result of building a native component. |
|
interface TestSuiteBinarySpec : BinarySpec
A binary which runs a suite of tests. |