[Gradle] Enable stable configuration cache preview (#119382)

The STABLE_CONFIGURATION_CACHE feature flag enables the following:

- tasks using a shared build service without declaring the requirement via the Task.usesService method will emit a deprecation warning.
- when the configuration cache is not enabled but the feature flag is present, deprecations for the following configuration cache requirements are also enabled:
    - Registering build listeners
    - Using task extensions and conventions at execution time
This commit is contained in:
Rene Groeschke 2024-12-31 16:30:57 +01:00 committed by GitHub
parent f028340958
commit 80f147c9b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ plugins {
id 'elasticsearch.java-toolchain'
}
enableFeaturePreview "STABLE_CONFIGURATION_CACHE"
rootProject.name = "elasticsearch"
dependencyResolutionManagement {