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.

MarkingStrategy

Represents a method of marking a cache directory. This is used to mark Gradle's cache directories.

You may implement your own marking strategy by implementing this interface and setting getMarkingStrategy.

Since

8.1

Properties

Link copied to clipboard
Marking strategy that marks the cache directory with a CACHEDIR.TAG file.
Link copied to clipboard
Marking strategy that does not mark the cache directory.

Functions

Link copied to clipboard
abstract fun tryMarkCacheDirectory(file: File)
Try to mark the given cache directory.