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

Deprecation warning of @SkipWhenEmpty since Gradle 7.4+ #641

Closed bernhardkern closed 1 year ago

bernhardkern commented 2 years ago

Versions:

org.asciidoctor.jvm.convert version 3.3.2 gradle version 7.4.2

Issue

Running the Gradle task asciidoctor we receive the following deprecation warning, which was added to Gradle 7.4+

Relying on FileTrees for ignoring empty directories when using @SkipWhenEmpty has been deprecated. This is scheduled to be removed in Gradle 8.0. Annotate the property sourceFileTree with @IgnoreEmptyDirectories or remove @SkipWhenEmpty. Consult the upgrading guide for further information: https://docs.gradle.org/7.4.2/userguide/upgrading_version_7.html#empty_directories_file_tree

This is not related to issue https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/602, which deals with the mainClass deprection (Title would also match to this issue, but since it is a different topic, we used a more specific title.

mrotteveel commented 2 years ago

This seems to be a duplicate of #629

ysb33r commented 1 year ago

Fixed in 4.0.0-alpha.1