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

Failed with Gradle exception 7.3.3 #633

Closed hantsy closed 2 years ago

hantsy commented 2 years ago

The Gradle build threw the followng exception,

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':html' (type 'AsciidoctorTask').
  - In plugin 'org.asciidoctor.convert' type 'org.asciidoctor.gradle.AsciidoctorTask' method 'asGemPath()' should not be annotated with: @Optional, @InputDirectory.

    Reason: Input/Output annotations are ignored if they are placed on something else than a getter.

    Possible solutions:
      1. Remove the annotations.
      2. Rename the method.

    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#ignored_annotations_on_method for more details about this problem.
  - In plugin 'org.asciidoctor.convert' type 'org.asciidoctor.gradle.AsciidoctorTask' property 'logDocuments' has redundant getters: 'getLogDocuments()' and 'isLogDocuments()'.

    Reason: Boolean property 'logDocuments' has both an `is` and a `get` getter.

    Possible solutions:
      1. Remove one of the getters.
      2. Annotate one of the getters with @Internal.

    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#redundant_getters for more details about this problem.
  - In plugin 'org.asciidoctor.convert' type 'org.asciidoctor.gradle.AsciidoctorTask' property 'separateOutputDirs' has redundant getters: 'getSeparateOutputDirs()' and 'isSeparateOutputDirs()'.

    Reason: Boolean property 'separateOutputDirs' has both an `is` and a `get` getter.

    Possible solutions:
      1. Remove one of the getters.
      2. Annotate one of the getters with @Internal.

    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#redundant_getters for more details about this problem.
hantsy commented 2 years ago

update the plugin the latest version and resolved.