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

Incompatible with gradle 7+ #18

Open
kbjerke opened this issue Nov 14, 2022 · 2 comments
Open

Incompatible with gradle 7+ #18

kbjerke opened this issue Nov 14, 2022 · 2 comments

Comments

@kbjerke
Copy link

kbjerke commented Nov 14, 2022

@Input
@Optional
public Integer getPort() {
return port;
}

These changes are not released in a new version of the gradle plugin, and therefore are incompatible with newer versions of gradle, complaining about field incorrectly marked as @Optional

Please release new version.

@Bryksin
Copy link

Bryksin commented Feb 8, 2023

Confirm
Gradle v7.5.1 - fails with:

A problem was found with the configuration of task ':swaggerhubDownload' (type 'DownloadTask').
  - In plugin 'io.swagger.swaggerhub' type 'io.swagger.swaggerhub.tasks.DownloadTask' property 'port' of type int shouldn't be annotated with @Optional.
    
    Reason: Properties of primitive type cannot be optional.

Had to downgrade Gradle to v6.9.3

@HugoMario
Copy link

It seems this issue was solved by #12 PR
and the specific fix for the compatibility error can be viewed at: 3f6f211

A new release is needed to have the plugin that works with Gradle 7+

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