Skip to content

build: reduce Maven Central release size - #12785

Merged
djankows merged 1 commit into
masterfrom
master-reduce-release-size
Nov 13, 2026
Merged

djankows merged 1 commit into
masterfrom
master-reduce-release-size

Conversation

@djankows

@djankows djankows commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Cut the per-release upload size to Maven Central:

  • exclude resources from sources jars: the templates already ship in the main jar, which made swagger-codegen-sources.jar ~3 MB instead of 0.5 MB
  • slim the CLI shaded jar by removing lambdaj (and with it hamcrest-all, cglib and objenesis); its uses in Langs and Meta are replaced with Java 8 streams
  • remove commented-out formatter and checkstyle config from the root pom

Cut the per-release upload to Maven Central from ~51 MB to ~23 MB:

- stop publishing swagger-generator: exclude it from the Central Portal
  bundle via the central-publishing plugin's excludeArtifacts (the plugin
  ignores maven.deploy.skip). The WAR is only consumed by the
  swagger-generator Docker images, which are built from target/, and it
  is not usable as a library dependency. The module is still built.
- exclude resources from sources jars: the templates already ship in the
  main jar, which made swagger-codegen-sources.jar ~3 MB instead of 0.5 MB
- slim the CLI shaded jar by removing lambdaj (and with it hamcrest-all,
  cglib and objenesis); its uses in Langs and Meta are replaced with
  Java 8 streams
- remove commented-out formatter and checkstyle config from the root pom
@djankows
djankows merged commit c976cd0 into master Nov 13, 2026
13 checks passed
@djankows
djankows deleted the master-reduce-release-size branch November 13, 2026 11:41
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