asciidoctor-gradle-plugin
asciidoctor-gradle-plugin copied to clipboard
3.3.1 does not track secondary inputs in subdirectories
While working on the JUnit 5 build, I noticed that secondary inputs are no longer tracked.
Steps to reproduce
- Clone https://github.com/marcphilipp/gradle-sandbox
- Run
./gradlew asciidoctorinasciidoctor-secondary-sources - Change content in
src/docs/asciidoc/subdir/include.adoc - Run
./gradlew asciidoctoragain
The task is reported as up-to-date but should have been rerun.
Analysis
I added some diagnostic output to the task that shows the problem. For some reason the secondary inputs are empty on 3.3.1 and 3.3.2.
With 3.3.0 the task prints:
> Task :asciidoctor
[/Users/marc/Repositories/gradle/sandbox/asciidoctor-secondary-sources/src/docs/asciidoc/subdir/index.adoc]
[/Users/marc/Repositories/gradle/sandbox/asciidoctor-secondary-sources/src/docs/asciidoc/subdir/include.adoc]
With 3.3.1 and 3.3.2 it prints:
> Task :asciidoctor
[/Users/marc/Repositories/gradle/sandbox/asciidoctor-secondary-sources/src/docs/asciidoc/subdir/index.adoc]
[]
Please try 4.0.0-alpha.1 and tell me if the problem still exists
I just updated the above reproducer project and it seems the issue still exists with 4.0.0-alpha.1.
OK thanks. I'll have a look into that.