Skip to content

Commit 4d3ec7e

Browse files
committed
Merge pull request #34199 from jprinet
* gh-34199: Do not cache :spring-boot-project:spring-boot-docs:asciidoctor* tasks Closes gh-34199
2 parents d1fe1ae + cfd589c commit 4d3ec7e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spring-boot-project/spring-boot-docs/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,11 @@ task runLoggingFormatExample(type: org.springframework.boot.build.docs.Applicati
301301
}
302302

303303
tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
304+
outputs.doNotCacheIf("This task uses log files as inputs which contain changing data (timestamp, pid)") { true }
304305
dependsOn dependencyVersions
305-
inputs.files(runRemoteSpringApplicationExample).withPathSensitivity(PathSensitivity.RELATIVE)
306-
inputs.files(runSpringApplicationExample).withPathSensitivity(PathSensitivity.RELATIVE)
307-
inputs.files(runLoggingFormatExample).withPathSensitivity(PathSensitivity.RELATIVE)
306+
inputs.files(runRemoteSpringApplicationExample).withPropertyName("runRemoteSpringApplicationExample").withPathSensitivity(PathSensitivity.RELATIVE)
307+
inputs.files(runSpringApplicationExample).withPropertyName("runSpringApplicationExample").withPathSensitivity(PathSensitivity.RELATIVE)
308+
inputs.files(runLoggingFormatExample).withPropertyName("runLoggingFormatExample").withPathSensitivity(PathSensitivity.RELATIVE)
308309
asciidoctorj {
309310
fatalWarnings = ['^((?!successfully validated).)*$']
310311
}

0 commit comments

Comments
 (0)