Interface CleanupPolicy


@Deprecated public interface CleanupPolicy
Deprecated.
since 1.21, replaced by CleanupPolicy
Configures the cleanup policy of the local build cache.

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

Since:
1.6.5
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Gets the local build cache cleanup interval.
    Deprecated.
    Gets the local build cache retention period.
    boolean
    Deprecated.
    Gets whether the local build cache cleanup is enabled.
    void
    setCleanupInterval(Duration cleanupInterval)
    Deprecated.
    Sets the local build cache cleanup interval.
    void
    setEnabled(boolean enabled)
    Deprecated.
    Sets whether to enable the local build cache cleanup.
    void
    setRetentionPeriod(Duration retentionPeriod)
    Deprecated.
    Sets the local build cache cleanup retention period.
  • Method Details

    • isEnabled

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

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

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

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

      Duration getRetentionPeriod()
      Deprecated.
      Gets the local build cache retention period.
      Returns:
      the local build cache cleanup retention period
      Since:
      1.6.5
    • setRetentionPeriod

      void setRetentionPeriod(Duration retentionPeriod)
      Deprecated.
      Sets the local build cache cleanup retention period.

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

      Parameters:
      retentionPeriod - the local build cache cleanup retention period
      Since:
      1.6.5
    • getCleanupInterval

      Duration getCleanupInterval()
      Deprecated.
      Gets the local build cache cleanup interval.
      Returns:
      the local build cache cleanup interval
      Since:
      1.6.5
    • setCleanupInterval

      void setCleanupInterval(Duration cleanupInterval)
      Deprecated.
      Sets the local build cache cleanup interval.

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

      Parameters:
      cleanupInterval - the local build cache cleanup interval
      Since:
      1.6.5