http-builder-ng / gradle-http-plugin

Gradle plugin providing support for using HttpBuilder-NG to make HTTP requests as Gradle Tasks.
https://http-builder-ng.github.io/gradle-http-plugin/
Apache License 2.0
31 stars 8 forks source link

Error on input/output annotations #18

Open ToxicBakery opened 3 years ago

ToxicBakery commented 3 years ago

Using Gradle 7, they've changed the rules on input/output annotations such that they now only work on getter/setters which results in half a dozen errors like this when using the plugin:

Some problems were found with the configuration of task ':api:notifyVersion' (type 'HttpTask').
  - Type 'io.github.httpbuilderng.http.HttpTask' method 'config()' should not be annotated with: @Input.

    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.0.2/userguide/validation_problems.html#ignored_annotations_on_method for more details about this problem.

The list of impacted methods I'm seeing is

config
delete
deleteAsync
get
getAsync
cjstehno commented 3 years ago

Please note that this project is dormant and there are no plans to do another release.