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.
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 bothAbstractAsciidoctorBaseTask.sourceFileTrees
andAbstractExportBaseTask.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.