Interface BuildCache

All Known Implementing Classes:
AbstractBuildCache, DirectoryBuildCache, HttpBuildCache

public interface BuildCache
Configuration object for a build cache.
Since:
3.5
  • Method Summary

    Modifier and Type
    Method
    Description
    Controls whether the build cache is enabled.
    default Property<Boolean>
    Controls whether the build cache is enabled.
    default Property<Boolean>
    Controls whether a given build can store outputs in the build cache.
    Controls whether a given build can store outputs in the build cache.
    void
    setEnabled(boolean enabled)
    Sets whether the build cache is enabled.
    void
    setPush(boolean push)
    Sets whether a given build can store outputs in the build cache.
  • Method Details

    • getEnabled

      Property<Boolean> getEnabled()
      Controls whether the build cache is enabled. Added for Kotlin source compatibility.
    • setEnabled

      void setEnabled(boolean enabled)
      Sets whether the build cache is enabled.
    • getIsEnabled

      @ReplacedBy("getEnabled()") default Property<Boolean> getIsEnabled()
      Controls whether the build cache is enabled.
    • getPush

      Property<Boolean> getPush()
      Controls whether a given build can store outputs in the build cache.
    • setPush

      void setPush(boolean push)
      Sets whether a given build can store outputs in the build cache.
    • getIsPush

      @ReplacedBy("getPush()") default Property<Boolean> getIsPush()
      Controls whether a given build can store outputs in the build cache. Added for Kotlin source compatibility.