diff --git a/conventions/src/main/kotlin/otel.spotless-conventions.gradle.kts b/conventions/src/main/kotlin/otel.spotless-conventions.gradle.kts index c3a3beb1cf00..4a3340327d27 100644 --- a/conventions/src/main/kotlin/otel.spotless-conventions.gradle.kts +++ b/conventions/src/main/kotlin/otel.spotless-conventions.gradle.kts @@ -121,3 +121,8 @@ if (project == rootProject) { } } } + +// Disable configuration cache for spotlessGroovy task which is not compatible +tasks.matching { it.name.contains("spotlessGroovy") }.configureEach { + notCompatibleWithConfigurationCache("Spotless Groovy task references other Task instances which are not supported with configuration cache") +} diff --git a/gradle.properties b/gradle.properties index fef595296b18..bc3c93e2600b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,6 @@ org.gradle.parallel=true org.gradle.caching=true +org.gradle.configuration-cache=true org.gradle.priority=low