Skip to content

Commit d14d383

Browse files
authored
Enable gradle configuration cache (#15382)
1 parent fc52627 commit d14d383

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

conventions/src/main/kotlin/otel.spotless-conventions.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,8 @@ if (project == rootProject) {
121121
}
122122
}
123123
}
124+
125+
// Disable configuration cache for spotlessGroovy task which is not compatible
126+
tasks.matching { it.name.contains("spotlessGroovy") }.configureEach {
127+
notCompatibleWithConfigurationCache("Spotless Groovy task references other Task instances which are not supported with configuration cache")
128+
}

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
org.gradle.parallel=true
22
org.gradle.caching=true
3+
org.gradle.configuration-cache=true
34

45
org.gradle.priority=low
56

0 commit comments

Comments
 (0)