Class DirectoryBuildCache

    • Constructor Detail

      • DirectoryBuildCache

        public DirectoryBuildCache()
    • Method Detail

      • getDirectory

        @Nullable
        public Object getDirectory()
        Returns the directory to use to store the build cache.
      • setDirectory

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

        public long getTargetSizeInMB()
        The target size of the build cache in megabytes. Defaults to 5 GB.

        Must be greater than or equal to 1, although larger cache sizes will be more useful.

        Since:
        4.0
      • setTargetSizeInMB

        public void setTargetSizeInMB​(long targetSizeInMB)
        The target size of the build cache in megabytes. Defaults to 5 GB.

        Must be greater than or equal to 1, although larger cache sizes will be more useful.

        Since:
        4.0