From 87c83847718358e272fd537648477284b81c0870 Mon Sep 17 00:00:00 2001 From: Jonathan Oddy Date: Sun, 25 Oct 2026 07:53:09 +0000 Subject: [PATCH] Drop dependencies the generated code doesn't use 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 Claude-Session: https://claude.ai/code/session_01LjfJneYfZvPVJht93FjFQW --- build.gradle | 2 -- 1 file changed, 2 deletions(-) diff --git a/build.gradle b/build.gradle index d162cac..818951a 100644 --- a/build.gradle +++ b/build.gradle @@ -59,8 +59,6 @@ dependencies { // Also provides google/api/{annotations,http}.proto and google/rpc/status.proto, which we therefore don't bundle. api "io.grpc:grpc-protobuf:${grpcVersion}" api "io.grpc:grpc-stub:${grpcVersion}" - implementation 'javax.annotation:javax.annotation-api:1.3.2' - runtimeOnly "io.grpc:grpc-netty-shaded:${grpcVersion}" } // Envoy pushes every release to the Buf registry, with its third-party proto dependencies pinned in api/buf.lock.