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.

NativeLibraryRequirement

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.

A dependency on a native library within the build.

Since

2.2

Functions

Link copied to clipboard
abstract fun getLibraryName(): String
The name of the required library.
Link copied to clipboard
abstract fun getLinkage(): String
The required linkage.
Link copied to clipboard
abstract fun getProjectPath(): String
The path to the project containing the library.
Link copied to clipboard
abstract fun withProjectPath(projectPath: String): NativeLibraryRequirement
Creates a copy of this requirement with the specified project path