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.
This commit is contained in:
Eric Haag
2023-09-01 14:36:42 -05:00
committed by GitHub
parent 6940119a68
commit 765efdcbba

View File

@@ -497,7 +497,7 @@ asciidoctorPdf {
asciidoctorj {
sourceDir "$buildDir/asciidoc"
inputs.dir(sourceDir)
inputs.dir(sourceDir).withPathSensitivity(PathSensitivity.RELATIVE)
sources {
include 'index.adoc'
}