For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

NativeBinary

Deprecated

The Gradle software model is deprecated and will be removed in Gradle 10. Use the new component model (e.g. cpp-application, cpp-library, swift-application, swift-library, xctest) instead.

Represents a particular binary artifact.

Since

2.2

Inheritors

Functions

Link copied to clipboard
abstract fun getBuildType(): BuildType
Returns the org.gradle.nativeplatform.BuildType used to construct this binary.
Link copied to clipboard
abstract fun getDisplayName(): String
Returns a human-consumable display name for this binary.
Link copied to clipboard
abstract fun getFlavor(): Flavor
The org.gradle.nativeplatform.Flavor that this binary was built with.
Link copied to clipboard
Returns the org.gradle.nativeplatform.platform.NativePlatform that this binary is targeted to run on.