Skip to content

Commit 48a793a

Browse files
authored
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.
1 parent 3183458 commit 48a793a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ asciidoctorPdf {
587587

588588
asciidoctorj {
589589
sourceDir "$buildDir/asciidoc"
590-
inputs.dir(sourceDir)
590+
inputs.dir(sourceDir).withPathSensitivity(PathSensitivity.RELATIVE)
591591
sources {
592592
include 'index.adoc'
593593
}

0 commit comments

Comments
 (0)