Skip to content

[BUG] Gradle Plugin does not work with Gradle 7.0 #9253

@SourcePond

Description

@SourcePond
Description

When using the plugin with Gradle 7.0, the build aborts with following error message:

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':microservice-with-api-api:openApiGenerate' (type 'GenerateTask').
  - Type 'GenerateTask' property 'input' annotated with @Internal should not be also annotated with @Input.
    
    Reason: A property is ignored but also has input annotations.
    
    Possible solutions:
      1. Remove the input annotations.
      2. Remove the @Internal annotation.
    
    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#ignored_property_must_not_be_annotated for more details about this problem.

* Try:
Run with --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':microservice-with-api-api:openApiGenerate' (type 'GenerateTask').
  - Type 'GenerateTask' property 'input' annotated with @Internal should not be also annotated with @Input.
    
    Reason: A property is ignored but also has input annotations.
    
    Possible solutions:
      1. Remove the input annotations.
      2. Remove the @Internal annotation.
openapi-generator version

5.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions