Repository navigation
[build] Bump Guava to 33.7.2-jre in Gradle projects - #13627
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The Guava dependency update has no active review issues.
No open issues 🎉
What changed in this PR
Updates transitive Guava dependencies to 33.7.2-jre using the shared Gradle constraint mechanism introduced in #13622.
Changes:
- Adds the Guava constraint and applies shared constraints to
java-source-utils. - Tracks settings and constraint changes as inputs to the Java build target.
- Suppresses ProGuard warnings for missing JSR 305 annotations and signature-polymorphic
VarHandlecalls.
| File | Description |
|---|---|
src/manifestmerger/proguard.pro |
Adds warning suppressions needed for the Guava update. |
src/java-source-utils/settings.gradle |
Applies shared dependency constraints. |
src/java-source-utils/java-source-utils.targets |
Adds settings and constraints to incremental build inputs. |
eng/gradle/dependency-constraints.gradle |
Adds the shared Guava 33.7.2-jre constraint. |
Review effort: Balanced
9 tasks
Base automatically changed from
jonathanpeppers-fix-bouncycastle-gradle
to
main
November 19, 2026 11:55
Context: #13622 Guava is a transitive dependency of four Gradle projects: * `src/java-source-utils`: 33.6.0-jre, from javaparser 3.28.2 * `src/manifestmerger`: 33.4.0-jre, from `manifest-merger` 32.5.1 * `src/proguard-android` and `JavaLib`: 33.4.0-jre, from AGP 9.5.1 These direct dependencies are already the latest stable versions, so add Guava to `eng/gradle/dependency-constraints.gradle` and apply that file from `src/java-source-utils/settings.gradle`. Guava 33.7 no longer depends on `jsr305` and calls signature-polymorphic `VarHandle` methods, so ProGuard fails in `src/manifestmerger`: Warning: com.google.common.jimfs.AbstractWatchService: can't find referenced class javax.annotation.Nullable Warning: com.google.common.hash.LittleEndianByteArray$VarHandleLittleEndianBytes$1: can't find referenced method 'long get(byte[],int)' in library class java.lang.invoke.VarHandle Ignore both in `proguard.pro`. jimfs only uses the JSR 305 annotations, which are not needed at run time, and `VarHandle` is the same case as the existing `MethodHandle` rule. Validation, with JDK 17: each build succeeds, and Guava resolves only to 33.7.2-jre. * `src/java-source-utils`: `gradlew jar test` (18 tests passed) * `src/manifestmerger`: `gradlew build dependencies` * `src/proguard-android`: `gradlew extractProguardFiles buildEnvironment dependencies` * `JavaLib`: `gradlew assembleDebug buildEnvironment :library:dependencies` Co-authored-by: Copilot App <[email protected]>
jonathanpeppers
force-pushed
the
jonathanpeppers-fix-guava-gradle
branch
from
November 19, 2026 11:55
07b1278 to
86780bc
Compare
jonathanpeppers
enabled stacked auto-merge (squash)
November 19, 2026 18:54
Member
Author
|
@dalexsoto review |
dalexsoto
approved these changes
Nov 19, 2026
dalexsoto
left a comment
Member
There was a problem hiding this comment.
The Guava constraint update and its Gradle and ProGuard integration look good to me.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context: #13622
Guava is a transitive dependency of four Gradle projects:
src/java-source-utils: 33.6.0-jre, from javaparser 3.28.2src/manifestmerger: 33.4.0-jre, frommanifest-merger32.5.1src/proguard-androidandJavaLib: 33.4.0-jre, from AGP 9.5.1These direct dependencies are already the latest stable versions, so add Guava to
eng/gradle/dependency-constraints.gradleand apply that file fromsrc/java-source-utils/settings.gradle.Guava 33.7 no longer depends on
jsr305and calls signature-polymorphicVarHandlemethods, so ProGuard fails insrc/manifestmerger:Ignore both in
proguard.pro. jimfs only uses the JSR 305 annotations, which are not needed at run time, andVarHandleis the same case as the existingMethodHandlerule.Validation, with JDK 17: each build succeeds, and Guava resolves only to 33.7.2-jre.
src/java-source-utils:gradlew jar test(18 tests passed)src/manifestmerger:gradlew build dependenciessrc/proguard-android:gradlew extractProguardFiles buildEnvironment dependenciesJavaLib:gradlew assembleDebug buildEnvironment :library:dependenciesCo-authored-by: Copilot App [email protected]