Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
SourcePond opened this issue Apr 13, 2021 · 2 comments
Closed

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

SourcePond opened this issue Apr 13, 2021 · 2 comments

Comments

@SourcePond
Copy link

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

@SourcePond SourcePond changed the title Gradle Plugin does not work with Gradle 7.0 [BUG] Gradle Plugin does not work with Gradle 7.0 Apr 13, 2021
@mattea36
Copy link

There seems to be this PR #9059

@wing328
Copy link
Member

wing328 commented Apr 14, 2021

Closed via #9059

@wing328 wing328 closed this as completed Apr 14, 2021
rm3l added a commit to Cosmo-Tech/cosmotech-api that referenced this issue May 7, 2021
However, the following issue [1] with the OpenAPI Generator Gradle Plugin
is a current showstopper, preventing us from merging this branch into
'main'.
This has been fixed in [2] and merged upstream, but a new release of
this Gradle Plugin is expected in roughly 2 weeks from now.

[1] OpenAPITools/openapi-generator#9253
[2] OpenAPITools/openapi-generator#9059
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants