Swagger codegen version for Java 6 and Jersey 1.17.1

675 views
Skip to first unread message

Sonia Marginean

unread,
Mar 20, 2017, 5:16:54 PM3/20/17
to Swagger
Hello, 

We have a Java 8 microservice for which we use swagger codegen to generate client SDKs for different older services to use.
We generated a Client SDK for Jersey1, but noticed the default version for Jersey1 is 1.17.1 and Java is 1.8. 

Unfortunately one of our client services is stuck on Java 1.6 and using Jersey1 1.17.1 and they can't upgrade to anything newer. 
Is there a version of swagger-codegen that would allow that?  started messing around with the pom.mustache files but then ran into issues because of JAX-RS.

Ron Ratovsky

unread,
Mar 20, 2017, 5:23:46 PM3/20/17
to swagger-sw...@googlegroups.com

Java 6 was EOL’ed over 4 years ago. I understand the challenge with such clients, but honestly, can’t tell which older version of the codegen would support it, and even if there is one, it’s probably riddled with other bugs that have since been resolved.

 

Your best bet is to try and modify the existing templates.

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

wing328

unread,
Apr 3, 2017, 1:36:40 AM4/3/17
to Swagger
Sonia,

I would suggest you to start a discussion via https://github.com/swagger-api/swagger-codegen/issues/new so that the swagger codegen community can help you out.

There's is a `java6` option (contributed by the Swagger Codegen community) to make the Java API client compatible with JDK1.6

William

Sonia Marginean於 2017年3月21日星期二 UTC+8上午5時16分54秒寫道:
Reply all
Reply to author
Forward
0 new messages