longTermCacheUrlPattern

Regex pattern to match API URLs that are OK to store long-term in the HTTP cache, up to longTermCacheMaxAge (1y by default, max value). By default, uses environment variable GRADLE_ENTERPRISE_API_LONG_TERM_CACHE_URL_PATTERN or a pattern matching:

  • {host}/api/builds/{id}/gradle-attributes

  • {host}/api/builds/{id}/maven-attributes

  • {host}/api/builds/{id}/gradle-build-cache-performance

  • {host}/api/builds/{id}/maven-build-cache-performance

Use | to define multiple patterns in one, e.g. .*gradle-attributes|.*test-distribution.