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 not compatible with gradle 6.0 #4496

Closed
anelam opened this issue Nov 15, 2019 · 4 comments
Closed

[BUG] [GRADLE] Plugin not compatible with gradle 6.0 #4496

anelam opened this issue Nov 15, 2019 · 4 comments

Comments

@anelam
Copy link

anelam commented Nov 15, 2019

Description

Using the gradle plugin with gradle version 6.0 throws an exception:

An exception occurred applying plugin request [id: 'org.openapi.generator', version: '4.2.0']
> Failed to apply plugin [id 'org.openapi.generator']
   > Could not create an instance of type org.openapitools.generator.gradle.plugin.extensions.OpenApiGeneratorGenerateExtension.
      > Please use the ObjectFactory.mapProperty() method to create a property of type Map<K, V>.
openapi-generator version

4.2.0

build.gradle.kts
plugins {
    id("org.openapi.generator") version "4.2.0"
}
@roxspring
Copy link
Contributor

Looks like this is a duplicate of #2613, fixed by #4352, and released in v4.2.1.

Please retry with the latest release and close the bug if the problem is resolved.

@renceabishek
Copy link

hey @roxspring ,
We still have this issue with 6.X version. I tried with 6.6.1 and got below issue. when i turned to 5.X (in my case 5.6.2) It is working

> Failed to apply plugin 'org.openapi.generator'.
   > Could not create an instance of type org.openapitools.generator.gradle.plugin.extensions.OpenApiGeneratorGenerateExtension.
      > Please use the ObjectFactory.mapProperty() method to create a property of type Map<K, V>.

@moley
Copy link

moley commented Feb 8, 2021

Hi, any news on this bug, we'd like to use this plugin with gradle 6, too

@wing328
Copy link
Member

wing328 commented Feb 8, 2021

@moley are you using the latest stable version v5.0.1?

https://plugins.gradle.org/plugin/org.openapi.generator

@anelam anelam closed this as completed Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants