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
286 stars 122 forks source link

Gradle deprecation warning when executing asciidoctorPdf task #579

Closed jannis-baratheon closed 3 years ago

jannis-baratheon commented 3 years ago

When building PDF documentation using Asciidoctor Gradle Plugin a deprecation warning shows up in the logs:

Property 'fontsDir' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.7/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.

Plugin version 3.3.0 Gradle version 6.7

jannis-baratheon commented 3 years ago

I pushed a PR for this: #580. And BTW I fixed a bug in org.asciidoctor.gradle.jvm.pdf.AsciidoctorPdfTaskFunctionalSpec#can apply a task configuration rule to set source and output directory (Gradle #gradleVersion) test which claimed to be testing against different Gradle versions when in fact it didn't.

The PR is small and reviewer-friendly.