From cfd589c8ce9555368747424d2ad9a03df1a984ef Mon Sep 17 00:00:00 2001 From: Jerome Prinet Date: Tue, 14 Feb 2023 17:28:03 +0100 Subject: [PATCH] Do not cache :spring-boot-project:spring-boot-docs:asciidoctor* tasks See gh-34199 --- spring-boot-project/spring-boot-docs/build.gradle | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/build.gradle b/spring-boot-project/spring-boot-docs/build.gradle index 473f59c9eff..8e730293d8c 100644 --- a/spring-boot-project/spring-boot-docs/build.gradle +++ b/spring-boot-project/spring-boot-docs/build.gradle @@ -301,10 +301,11 @@ task runLoggingFormatExample(type: org.springframework.boot.build.docs.Applicati } tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) { + outputs.doNotCacheIf("This task uses log files as inputs which contain changing data (timestamp, pid)") { true } dependsOn dependencyVersions - inputs.files(runRemoteSpringApplicationExample).withPathSensitivity(PathSensitivity.RELATIVE) - inputs.files(runSpringApplicationExample).withPathSensitivity(PathSensitivity.RELATIVE) - inputs.files(runLoggingFormatExample).withPathSensitivity(PathSensitivity.RELATIVE) + inputs.files(runRemoteSpringApplicationExample).withPropertyName("runRemoteSpringApplicationExample").withPathSensitivity(PathSensitivity.RELATIVE) + inputs.files(runSpringApplicationExample).withPropertyName("runSpringApplicationExample").withPathSensitivity(PathSensitivity.RELATIVE) + inputs.files(runLoggingFormatExample).withPropertyName("runLoggingFormatExample").withPathSensitivity(PathSensitivity.RELATIVE) asciidoctorj { fatalWarnings = ['^((?!successfully validated).)*$'] }