Skip to content

build: slim swagger-codegen-cli shaded jar, stop building swagger-codegen tests jar - #12784

Merged
djankows merged 2 commits into
3.0.0from
slim-cli
Nov 12, 2026
Merged

djankows merged 2 commits into
3.0.0from
slim-cli

Conversation

@djankows

@djankows djankows commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

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.

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.
@djankows djankows changed the title build: slim swagger-codegen-cli shaded jar build: slim swagger-codegen-cli shaded jar, stop building swagger-codegen tests jar Nov 12, 2026
@djankows
djankows merged commit b4c9eb6 into 3.0.0 Nov 12, 2026
5 checks passed
@djankows
djankows deleted the slim-cli branch November 12, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants