Skip to content

Commit 84faaa6

Browse files
authored
Fix build cache misses from overlapping outputs in statsd module (#7349)
Disable the jar task for micrometer-registry-statsd since shadowJar uses archiveClassifier='', producing the same output path and causing overlapping output cache invalidation. Also add missing Build-Timezone and Build-Url to MANIFEST.MF normalization to prevent cache misses across environments. Signed-off-by: Gasper Kojek <[email protected]>
1 parent 1010433 commit 84faaa6

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ subprojects {
222222
'Branch',
223223
'Module-Origin',
224224
'Created-By',
225-
'Build-Java-Version'
225+
'Build-Java-Version',
226+
'Build-Timezone',
227+
'Build-Url'
226228
].each {
227229
ignoreAttribute it
228230
ignoreProperty it

implementations/micrometer-registry-statsd/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ nebulaPublishVerification {
3333
ignore('io.netty:netty-transport-native-kqueue')
3434
}
3535

36+
tasks.named('jar') {
37+
enabled = false
38+
}
39+
3640
shadowJar {
3741
configurations = [project.configurations.compileClasspath]
3842
archiveClassifier.set('')

0 commit comments

Comments
 (0)