From 765efdcbba76a71c614991de216cff6fff5fc68b Mon Sep 17 00:00:00 2001 From: Eric Haag Date: Fri, 1 Sep 2023 14:36:42 -0500 Subject: [PATCH] Relativize sourceDir property of asciidoctorPdf This sets the path sensitivity to relative for the sourceDir property of the asciidoctorPdf task. Previously, the full absolute path to the sources directory would be considered as an input to the task. This would cause a local build cache miss when executing the task from two different directories or a remote build cache hit given that the paths to the sources directory on CI and for local developers will undoubtedly be different. --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 77cabaec..7fd473bb 100644 --- a/build.gradle +++ b/build.gradle @@ -497,7 +497,7 @@ asciidoctorPdf { asciidoctorj { sourceDir "$buildDir/asciidoc" - inputs.dir(sourceDir) + inputs.dir(sourceDir).withPathSensitivity(PathSensitivity.RELATIVE) sources { include 'index.adoc' }