asciidoctor / asciidoctor-gradle-plugin

A Gradle plugin that uses Asciidoctor via JRuby to process AsciiDoc source files within the project.
https://asciidoctor.github.io/asciidoctor-gradle-plugin/
Apache License 2.0
285 stars 120 forks source link

The source files should be annotated with `@IgnoreEmptyDirectories` #629

Closed wolfs closed 1 year ago

wolfs commented 2 years ago

Gradle 6.8 introduced the annotation @IgnoreEmptyDirectories, which allows specifying that an input file property only cares about the files and not about directories. Since both AbstractAsciidoctorBaseTask.sourceFileTrees and AbstractExportBaseTask.slides are both source files and both tasks don't seem to take directories into account, both should be annotated with @IgnoreEmptyDirectories.

The whole plugin would need to be compiled agains Gradle 6.8 at least to add the annotation. Though if nothing else changes, then the tasks would still work with older versions of Gradle, since the annotation would simply be ignored.

ysb33r commented 1 year ago

Fixed in 4.0.0-alpha.1