> Task :asciidoctorPdf FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':asciidoctorPdf' (type 'AsciidoctorPdfTask').
- In plugin 'org.asciidoctor.jvm.pdf' type 'org.asciidoctor.gradle.jvm.pdf.AsciidoctorPdfTask' property 'fontsDir' is missing an input or output annotation.
Reason: A property without annotation isn't considered during up-to-date checking.
Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.
Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#missing_annotation for more details about this problem.
@Deprecated
@ReplacedBy('getFontsDirs')
File getFontsDir() {
if (this.fontDirs.size() > 1) {
throw new PdfFontDirException('There is more than 1 file in the fonts directory')
}
if (this.fontDirs.empty) {
throw new PdfFontDirException('No directory is specified')
}
this.project.file(this.fontDirs.first())
}
@InputFiles
@PathSensitive(PathSensitivity.RELATIVE)
@Optional
FileCollection getFontsDirs() {
this.project.files(this.fontDirs)
}
https://github.com/asciidoctor/asciidoctor-gradle-examples/tree/master/asciidoc-to-pdf-example
OK -
./gradlew asciidoctor
FAIL -
gradle asciidoctor
gradle -v
-> Gradle 7.4.2asciidoctor-gradle-plugin-master/jvm-pdf/src/main/groovy/org/asciidoctor/gradle/jvm/pdf/AsciidoctorPdfTask.groovy
maybe add @Internal will solve ?