mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
9486ece0d8
Prior to this commit, the asciidoctor Gradle task was configured to generate both the HTML5 and PDF backends. Unfortunately, this resulted in resources such as HTML, JavaScript, CSS, and images being published alongside the generated PDF documents. This commit addresses this issue by introducing the use of a dedicated asciidoctorPdf Gradle task. The existing asciidoctor Gradle task has been modified to only generate HTML5 output. In addition, the asciidoctor task now has a dynamic dependency on the asciidoctorPdf task if the current project version is a non-SNAPSHOT version. Thus, invoking `./gradlew asciidoctor` will still generate both the HTML5 and PDF outputs for non-SNAPSHOT versions; whereas, `./gradlew asciidoctorPdf` will generate only the PDF outputs regardless of the current project version. See gh-25783