Interface LocalBuildCache


  • @Deprecated
    public interface LocalBuildCache
    Deprecated.
    since 1.21, replaced by LocalBuildCache
    Configures the local build cache.

    The specified values will take precedence over the values defined in the gradle-enterprise.xml.

    Since:
    1.6.5
    • Method Detail

      • isEnabled

        boolean isEnabled()
        Deprecated.
        Whether the local build cache is enabled.
        Returns:
        true if the local build cache is enabled, false otherwise
        Since:
        1.6.5
      • setEnabled

        void setEnabled​(boolean enabled)
        Deprecated.
        Sets whether to enable the local build cache.

        Configuration via the gradle.cache.local.enabled system property will always take precedence.

        Parameters:
        enabled - whether to enable the local build cache
        Since:
        1.6.5
      • isStoreEnabled

        boolean isStoreEnabled()
        Deprecated.
        Whether storing build cache entries is enabled.
        Returns:
        true if storing build cache entries is enabled, false otherwise
        Since:
        1.14
      • setStoreEnabled

        void setStoreEnabled​(boolean storeEnabled)
        Deprecated.
        Sets whether to store build cache entries.

        Configuration via the gradle.cache.local.storeEnabled system property will always take precedence.

        Parameters:
        storeEnabled - whether to enable storing build cache entries
        Since:
        1.14
      • getDirectory

        java.io.File getDirectory()
        Deprecated.
        Gets the local build cache directory.
        Returns:
        the local build cache directory
        Since:
        1.6.5
      • setDirectory

        void setDirectory​(java.io.File directory)
        Deprecated.
        Sets the local build cache directory.

        Configuration via the gradle.cache.local.directory system property will always take precedence.

        Parameters:
        directory - the local build cache directory
        Since:
        1.6.5
      • getCleanupPolicy

        CleanupPolicy getCleanupPolicy()
        Deprecated.
        Gets the cleanup policy configuration.
        Returns:
        the cleanup policy configuration
        Since:
        1.6.5