Skip to content

build(deps): manage guava via guava-bom ahead of Beam GCP BOM - #4584

Closed
shunping wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
shunping:guava-audit
Closed

shunping wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
shunping:guava-audit

Conversation

@shunping

Copy link
Copy Markdown
Contributor

The Beam GCP BOM pins guava 33.1.0-jre. Because it was the first BOM import to manage guava, it overrode guava.version (33.7.2-jre) for every module, so shaded template jars bundled 33.1.0-jre. Import guava-bom first so guava, guava-gwt and guava-testlib resolve to guava.version.

The Beam GCP BOM pins guava 33.1.0-jre. Because it was the first BOM import
to manage guava, it overrode guava.version (33.7.2-jre) for every module,
so shaded template jars bundled 33.1.0-jre. Import guava-bom first so
guava, guava-gwt and guava-testlib resolve to guava.version.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request adjusts the dependency management order in the project's configuration to resolve a version conflict. By importing the Guava BOM earlier in the dependency management block, we ensure that the intended version of Guava is correctly propagated across all modules, preventing unintended overrides from the Beam GCP BOM.

Highlights

  • Dependency Management: Added guava-bom to the dependency management section of the pom.xml file.
  • Version Resolution: Positioned the guava-bom import before the Beam GCP BOM to ensure the project-defined guava.version (33.7.2-jre) is correctly applied instead of the older version pinned by the Beam BOM.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@shunping
shunping requested a review from Abacn November 18, 2026 17:45

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the pom.xml file to import the guava-bom dependency, ensuring it is loaded before the Beam GCP BOM to override its pinned Guava version. There are no review comments, and I have no feedback to provide.

@shunping shunping added the dependencies Pull requests that update a dependency file label Nov 18, 2026
@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.68%. Comparing base (fd41bc9) to head (882ad18).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #4584      +/-   ##
============================================
- Coverage     59.69%   59.68%   -0.02%     
- Complexity     8382     8383       +1     
============================================
  Files          1121     1121              
  Lines         72595    72595              
  Branches       8819     8819              
============================================
- Hits          43336    43326      -10     
- Misses        26364    26373       +9     
- Partials       2895     2896       +1     
Components Coverage Δ
spanner-templates 83.97% <ø> (ø)
spanner-import-export 72.62% <ø> (-0.10%) ⬇️
spanner-live-forward-migration 87.54% <ø> (ø)
spanner-live-reverse-replication 79.77% <ø> (ø)
spanner-bulk-migration 88.23% <ø> (ø)
gcs-spanner-dv 86.43% <ø> (ø)
see 4 files with indirect coverage changes
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@shunping shunping closed this Nov 18, 2026
@shunping

Copy link
Copy Markdown
Contributor Author

Superseded by #4583

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant