Repository navigation
Merged
Conversation
Reduce the CLI jar published to Maven Central from ~23.5 MB to ~18.8 MB by dropping dependencies the CLI never uses: - exclude the v2 codegen (io.swagger:swagger-codegen) pulled in by swagger-codegen core; it is only used by the online generator's GeneratorService, which the CLI does not call - remove lambdaj (and with it hamcrest-all, cglib and objenesis); its single use in Langs is replaced with Java streams
The -tests.jar (~0.25 MB per release) was published to Maven Central with every release, but nothing consumes it.
daniel-kmiecik
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
modules/swagger-codegen-cli/pom.xml:
- excludes the v2 codegen (io.swagger:swagger-codegen) from the CLI. Only the online generator uses it, and that module still gets it.
- removes the lambdaj dependency, which takes out hamcrest, cglib and objenesis with it.
Langs.java: the one lambdaj call is now plain Java streams. The output is the same.
Meta.java: removed a stale javadoc line that mentioned lambdaj.
The -tests.jar (~0.25 MB per release) was published to Maven Central with every release, but nothing consumes it, it was removed.