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.

BuildFeatures

@ServiceScope(value = BuildTree::class)
interface BuildFeatures(source)

Provides information about various build features supported by Gradle, and their state in the current build.

An instance of this type can be injected into a task, plugin or other object by annotating a public constructor or property getter method with javax.inject.Inject.

Since

8.5

See also

Functions

Link copied to clipboard
Status of the Configuration Cache feature configuration in the build.
Link copied to clipboard
Status of the Isolated Projects feature in the build.