asciidoctor-gradle-plugin icon indicating copy to clipboard operation
asciidoctor-gradle-plugin copied to clipboard

3.3.1 does not track secondary inputs in subdirectories

Open marcphilipp opened this issue 4 years ago • 4 comments

While working on the JUnit 5 build, I noticed that secondary inputs are no longer tracked.

Steps to reproduce

  1. Clone https://github.com/marcphilipp/gradle-sandbox
  2. Run ./gradlew asciidoctor in asciidoctor-secondary-sources
  3. Change content in src/docs/asciidoc/subdir/include.adoc
  4. Run ./gradlew asciidoctor again

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]
[]

marcphilipp avatar Apr 12 '21 18:04 marcphilipp

Please try 4.0.0-alpha.1 and tell me if the problem still exists

ysb33r avatar Dec 31 '22 17:12 ysb33r

I just updated the above reproducer project and it seems the issue still exists with 4.0.0-alpha.1.

marcphilipp avatar Jan 01 '23 17:01 marcphilipp

OK thanks. I'll have a look into that.

ysb33r avatar Jan 02 '23 11:01 ysb33r