From 3c12968515daddc25dd11c0e6a9daaa979b1ed6c Mon Sep 17 00:00:00 2001 From: Lennart Schwahn <3949818+lschwahn@users.noreply.github.com> Date: Fri, 13 Dec 2024 12:03:20 +0100 Subject: [PATCH] Fix: Cache mismatch when absolute Path differ Set a propertyName and pathSensitivity to RELATIVE for asciidoc-Task Inputs --- .../asciidoctor/gradle/jvm/AbstractAsciidoctorTask.groovy | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AbstractAsciidoctorTask.groovy b/jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AbstractAsciidoctorTask.groovy index 2d7c3c387..3ec5e06e6 100644 --- a/jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AbstractAsciidoctorTask.groovy +++ b/jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AbstractAsciidoctorTask.groovy @@ -480,7 +480,11 @@ class AbstractAsciidoctorTask extends AbstractJvmModelExecTask, Configuration> inputs.files(this.asciidoctorj.configuration) - inputs.files { gemJarProviders }.withPathSensitivity(RELATIVE) + .withPathSensitivity(RELATIVE) + .withPropertyName('asciidoctorj-dependencies') + inputs.files { gemJarProviders } + .withPathSensitivity(RELATIVE) + .withPropertyName('gemJarProviders') inputs.property 'backends', { -> backends() } inputs.property 'asciidoctorj-version', { -> asciidoctorj.version } inputs.property 'jruby-version', { -> asciidoctorj.jrubyVersion ?: '' }