-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Update swagger-codegen-maven-plugin example to use current dependencies #3291
Update swagger-codegen-maven-plugin example to use current dependencies #3291
Conversation
<jersey-version>2.12</jersey-version> | ||
<jackson-version>2.4.2</jackson-version> | ||
<jodatime-version>2.3</jodatime-version> | ||
<swagger-core-version>1.5.8</swagger-core-version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for swagger core, i believe the latest stable version is 1.5.9: https://mvnrepository.com/artifact/io.swagger/swagger-core
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used the output from https://generator.swagger.io/#!/clients/generateClient in order to get the version numbers. That generator API returns 1.5.8 so I copied it in order to stay on par with what was already being done.
I can update it if you think there are no breaking changes between versions.
generator.swagger.io uses the latest stable version (2.1.6) but not the latest master. After the 2.1.16 release, we've reviewed and updated the dependencies for all langauges so please use 1.5.9 instead for swagger core version. |
cc @ePaul |
Where can I find that list in code so I can match it up in the future? |
For Java dependencies, I usually go to https://mvnrespository.com to look for the latest stable version. e..g https://mvnrepository.com/artifact/io.swagger/swagger-core |
I meant which versions you know that the generated templates work with. I
|
The template should work with the latest stable version. If there's any issues, we definitely need to look into those. If you do not feel comfortable upgrading swagger core to 1.5.9, it's perfectly to fine to keep 1.5.8 and we'll do the upgrade later. |
@wing328 it is building now. It would be nice to have something in the build process to automate these dependency updates so they stay in sync automatically |
@TRII agree that automating the dependency updates would be nice. For the CI failure, it's due to npm/npm#13284, which has been ongoing for hours... I'll restart the CI jobs once the issue has been addressed. |
3c89f54
to
ec6ba1c
Compare
There was an issue reported by the CI as follows:
@TRII I wonder if you can take a look when you've time. |
@@ -12,7 +12,7 @@ | |||
<plugin> | |||
<groupId>io.swagger</groupId> | |||
<artifactId>swagger-codegen-maven-plugin</artifactId> | |||
<version>2.1.5-SNAPSHOT</version> | |||
<version>2.2.0-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.2.0 has been released: https://mvnrepository.com/artifact/io.swagger/swagger-codegen-maven-plugin
Please kindly remove the -SNAPSHOT
@TRII I tested with the latest master and got the same error when running Does the command run without issue in your local environment? |
@wing328 |
@TRII thanks for the info. Can you please update the java-client.xml as well with the fix? Otherwise, there's no way the CI tests can pass when running the command. |
@wing328 honestly I quit fighting with it. The code generation library works well but the maven plugin is not quite right. The codegen tool also generates test stubs but the maven plugin does not. I'm not a java developer so fixing this is out of my current skill set. I am writing more java lately, but my deliverables preclude any extra curricular work I can put into this plugin at the moment. As I get more familiar with how maven plugins work, I can probably come back and revisit this item. |
@TRII thanks again for your time and effort in fixing it. I'll try to get a core team member to address that. |
@wing328 I may be able to revisit this in a week or two. I'll keep you updated. |
Any update about this? I keep getting the error above (using 2.2.3) Ah, now I see - if I move to be direct child of the plugin then it works |
replaced by #8448 |
Fixes #3261
New PR for history vanity