1000kit / tkit-mp-restclient-plugin

1000kit microprofile rest client generator plugin
https://github.com/1000kit/tkit-mp-restclient-plugin
Apache License 2.0
0 stars 1 forks source link

JDK 17 requires codegen 3.0.34+ #6

Open adroste opened 2 years ago

adroste commented 2 years ago

https://github.com/1000kit/tkit-mp-restclient-plugin/blob/ad86d329c8ed3f67eefeea12d2a4835405725123/pom.xml#L52

This lib is not compatible with java 17 due to compile errors caused by jknack/handlebars which is a dependency of swagger-codegen. Similar issue: https://github.com/swagger-api/swagger-codegen/issues/10966

The erros are resolved with jknack/handlebars v4.3.0

Solutions:

  1. Update to swagger-codegen 3.0.34+, see: https://mvnrepository.com/artifact/io.swagger.codegen.v3/swagger-codegen/3.0.34
  2. Manually overwrite transitive dependency of swagger-codegen
    <dependency>
    <groupId>com.github.jknack</groupId>
    <artifactId>handlebars</artifactId>
    <version>4.3.0</version>
    </dependency>
andrejpetras commented 2 years ago

@adroste could you try to use quarkus-openapi-generator instead of this plugin? https://github.com/quarkiverse/quarkus-openapi-generator

adroste commented 2 years ago

The quarkus-openapi-generator is working, but it's not perfect and definitely not a drop in replacement. As far as my research goes, these are the options for a quarkus based project:

Option 1: Quarkiverse OpenApi Generator

Option 2: OpenAPITools OpenAPI Generator

Option 3: Swagger codegen

Option 4: tkit-mp-restclient-plugin

ricardozanini commented 2 years ago

@adroste feel free to add suggestions/contribute to the quarkus-openapi-generator to enhance the compatibility you need for this project.

forszpanen commented 1 year ago

We were forced to update the plugin to jdk17 on our side. A few projects didn't work with Quarkus official plugin. e.g. problems with securityHeaders, customHeaders, oneOf hierarchy and beanParams required too much changes in a code. Some of those problems we resolved by making a change in official plugin. It would be great to have tkit plugins in java17 because a transition is very challenging.

andrejpetras commented 1 year ago

@forszpanen this project is deprecated, we do recommend to migrate to quarkus-openapi-generator