api / org.gradle.platform.base / LibraryBinarySpec

LibraryBinarySpec

@Incubating interface LibraryBinarySpec : BinarySpec

A binary produced from a `org.gradle.platform.base.LibrarySpec`.

Functions

getLibrary

abstract fun getLibrary(): LibrarySpec

The library that this binary belongs to.

Inherited Functions

getInputs

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).

getSources

abstract fun getSources(): ModelMap<LanguageSourceSet>

The sources owned by this binary.

getTasks

abstract fun getTasks(): BinaryTasksCollection

The set of tasks associated with this binary.

isBuildable

abstract fun isBuildable(): Boolean

Can this binary be built in the current environment?

Inheritors

JarBinarySpec

interface JarBinarySpec : LibraryBinarySpec, JvmBinarySpec

Definition of a Jar file binary that is to be built by Gradle.

NativeLibraryBinarySpec

interface NativeLibraryBinarySpec : NativeBinarySpec, LibraryBinarySpec

Represents a binary artifact that is the result of building a native library component.