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

AsciidoctorPdfTask property 'fontsDir' is missing an input or output annotation #618

Open janmaterne opened 3 years ago

janmaterne commented 3 years ago

Since Gradle 7.0 this is not a warning any more, it's an error which causes the build to break:

https://github.com/asciidoctor/asciidoctor-gradle-plugin/blob/master/jvm-pdf/src/main/groovy/org/asciidoctor/gradle/jvm/pdf/AsciidoctorPdfTask.groovy sais this property is deprecated and you should use the plural (fontsDirs) instead which is annotated which @InputFiles.

But just the presence of the deprecated field without annotation breaks the build.

With Gradle 6.7.2 it works fine.

mach-wkl commented 2 years ago

I do not have this problem in Gradle 7.4.2 with plugins { 'org.asciidoctor.jvm.pdf' version '3.3.2' }.

ysb33r commented 1 year ago

Please try 4.0.0-alpha.1 and tell me if the problem still exists.