gradle-http-plugin icon indicating copy to clipboard operation
gradle-http-plugin copied to clipboard

Error on input/output annotations

Open ToxicBakery opened this issue 3 years ago • 1 comments

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

ToxicBakery avatar Aug 04 '21 13:08 ToxicBakery

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

cjstehno avatar Aug 04 '21 15:08 cjstehno