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.

DirectoryBuildCache

Configuration object for the local directory build cache.

Since

3.5

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
@get:Nullable
open var directory: Any
Link copied to clipboard
private open var push: Boolean

Functions

Link copied to clipboard
open fun isEnabled(): Boolean
Returns whether the build cache is enabled.
Link copied to clipboard
open fun isPush(): Boolean
Returns whether a given build can store outputs in the build cache.
Link copied to clipboard
open fun setEnabled(enabled: Boolean)
Sets whether the build cache is enabled.