LocalCacheSettings

Local Cache Settings

Specifies settings which configure Gradle's local build cache; these may be provided in lieu of settings specified directly with Gradle. Local build cache settings specified directly to Gradle take precedence over these. By default, the local build cache is enabled.

Inheritors

Properties

Link copied to clipboard
abstract val directory: DirectoryProperty

Directory where local cached objects are stored; if unset, Buildless sets a sensible default. If this value is set before the Buildless plugin is invoked, the user's value takes precedence and this value is rendered inert.

Link copied to clipboard
abstract val enabled: Property<Boolean>

Indicates whether a given cache sub-system should be enabled or disabled (either a local cache or remote cache). If a caching sub-system is "disabled," it is not used at all for the current build.

Functions

Link copied to clipboard
open fun disable()

Shorthand function to disable this cache configuration.

Link copied to clipboard
open fun enable()

Shorthand function to enable this cache configuration.