Class DirectoryBuildCache

java.lang.Object
org.gradle.caching.configuration.AbstractBuildCache
org.gradle.caching.local.DirectoryBuildCache
All Implemented Interfaces:
BuildCache

public abstract class DirectoryBuildCache extends AbstractBuildCache
Configuration object for the local directory build cache.
Since:
3.5
  • Constructor Details

    • DirectoryBuildCache

      public DirectoryBuildCache()
  • Method Details

    • getDirectory

      @Optional public abstract DirectoryProperty getDirectory()
      The directory to use to store the build cache.
    • setDirectory

      public void setDirectory(@Nullable Object directory)
      Sets the directory to use to store the build cache. The directory is evaluated as per Project.file(Object).
    • getFileResolver

      @Inject @Deprecated protected abstract org.gradle.internal.file.PathToFileResolver getFileResolver()
      Deprecated.