Skip to content

Commit b3827e2

Browse files
authored
Document shadowJar cache miss (#3097)
Document build cache miss to ease detection of (new) performance regression.
1 parent 54d77f7 commit b3827e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

buildSrc/src/main/kotlin/java-library-conventions.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ tasks.jar {
194194
}
195195
}
196196

197+
tasks.withType<ShadowJar>().configureEach {
198+
outputs.doNotCacheIf("Shadow jar contains a Manifest with Build-Time") { true }
199+
}
200+
197201
tasks.withType<JavaCompile>().configureEach {
198202
options.encoding = "UTF-8"
199203
}

0 commit comments

Comments
 (0)