Skip to content

Commit

Permalink
Strip unnecessary Bazel server jar contents
Browse files Browse the repository at this point in the history
fastutil is very large and thus stripped (but not obfuscated) with proguard. The Auto* processors do not need to be included into the release binary, only their annotations.

Also removes some third_party targets that are unused.

Bazel binary size on macOS is 65 MB before and 53 MB after this change.

Work towards #22722

Closes #22787.

PiperOrigin-RevId: 646161266
Change-Id: I65d0ad4d49e87d910cdbf90c34ee2fe0033a01ac
  • Loading branch information
fmeum authored and Copybara-Service committed Jun 24, 2024
1 parent 7394a31 commit 9d8d6c7
Show file tree
Hide file tree
Showing 8 changed files with 505 additions and 42 deletions.
4 changes: 1 addition & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ maven.install(
# keep sorted
"com.beust:jcommander:1.82",
"com.github.ben-manes.caffeine:caffeine:3.0.5",
"com.github.kevinstern:software-and-algorithms:1.0",
"com.github.stephenc.jcip:jcip-annotations:1.0-1",
"com.google.api-client:google-api-client:1.35.2",
"com.google.api-client:google-api-client-gson:1.35.2",
Expand Down Expand Up @@ -115,6 +114,7 @@ maven.install(
"com.google.http-client:google-http-client-gson:1.42.0",
"com.google.j2objc:j2objc-annotations:1.3",
"com.google.turbine:turbine:0.6.0",
"com.guardsquare:proguard-base:jar:7.5.0",
"com.ryanharter.auto.value:auto-value-gson-extension:1.3.1",
"com.ryanharter.auto.value:auto-value-gson-factory:1.3.1",
"com.ryanharter.auto.value:auto-value-gson-runtime:1.3.1",
Expand Down Expand Up @@ -162,8 +162,6 @@ maven.install(
"javax.activation:javax.activation-api:1.2.0",
"javax.annotation:javax.annotation-api:1.3.2",
"javax.inject:javax.inject:1",
"net.bytebuddy:byte-buddy:1.14.5",
"net.bytebuddy:byte-buddy-agent:1.14.5",
"org.apache.commons:commons-compress:1.26.1",
"org.apache.commons:commons-pool2:2.8.0",
"org.apache.tomcat:tomcat-annotations-api:8.0.5",
Expand Down
100 changes: 92 additions & 8 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9d8d6c7

Please sign in to comment.