Skip to content

Drop dependencies the generated code doesn't use - #4

Merged
JonathanO merged 1 commit into
mainfrom
drop-unused-deps
Oct 25, 2026
Merged

JonathanO merged 1 commit into
mainfrom
drop-unused-deps

Conversation

@JonathanO

Copy link
Copy Markdown
Owner

Checked the generated sources for Envoy 1.40.0: nothing uses javax.annotation (gRPC stubs use grpc-stub's own @GrpcGenerated) or netty.

  • javax.annotation-api (runtime scope in the POM): unused.
  • grpc-netty-shaded (runtime scope): a whole gRPC transport, ~10 MB, on every user's classpath. Which transport to use is the application's choice; java-envoy-xds users bring their own server.

The POM otherwise meets Central's requirements (name, description, url, licence, developer, scm, sources and javadoc jars); checked by publishing 1.31.0 and 1.40.0 locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LjfJneYfZvPVJht93FjFQW

Nothing generated uses javax.annotation (gRPC's stubs are marked with
grpc-stub's own @GrpcGenerated) or netty. grpc-netty-shaded put a whole
gRPC transport, about 10 MB, on every user's runtime classpath, when
the transport is the application's choice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LjfJneYfZvPVJht93FjFQW
@JonathanO
JonathanO merged commit 046e5fc into main Oct 25, 2026
1 check passed
@JonathanO
JonathanO deleted the drop-unused-deps branch October 25, 2026 17:35
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.

1 participant