Skip to content

[JAVA][gradle-plugin] The option generateClientAsBean is not available in gradle plugin #15639

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

Closed
fserafin opened this issue May 25, 2023 · 2 comments

Comments

@fserafin
Copy link

Description

In the latest release (v6.6.0) the option generateClientAsBean has been introduced, as in those PRs:
#15419
#15416

But it seems it's still not available in the org.openapi.generator gradle plugin v6.6.0.
In fact if I add that option like this:

task customGenerateTask(type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) {
    generateClientAsBean.set true
    // other options...
}

i obtain the following error:
groovy.lang.MissingPropertyException: Could not get unknown property 'generateClientAsBean' for task ':customGenerateTask' of type org.openapitools.generator.gradle.plugin.tasks.GenerateTask

openapi-generator version

v6.6.0

Steps to reproduce

Adding option generateClientAsBean in the GenerateTask task.

Related issues/PRs

#15419
#15416

Suggest a fix/enhancement

Make the option available for gradle and maven plugins.

@wing328
Copy link
Member

wing328 commented May 25, 2023

generateClientAsBean is not a global option

it's an option for the Java generator only so you can set via "additionalProperties" instead

@fserafin
Copy link
Author

generateClientAsBean is not a global option

it's an option for the Java generator only so you can set via "additionalProperties" instead

Thank you so much @wing328 for your prompt response and for providing the solution! 👍
I can close the issue

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

2 participants