Skip to content

Further excluded old guava pom from shaded jars - #4583

Merged
Abacn merged 1 commit into
GoogleCloudPlatform:mainfrom
Abacn:further-exclude-shade
Nov 18, 2026
Merged

Abacn merged 1 commit into
GoogleCloudPlatform:mainfrom
Abacn:further-exclude-shade

Conversation

@Abacn

@Abacn Abacn commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Pin guava in DependencyManagement so modules having it as transitive dependency also honor the 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 improves dependency consistency and reduces potential conflicts within the project's shaded jars. By pinning the Guava version in the central dependency management and refining the exclusion filters for various shaded artifacts, the changes ensure that transitive dependencies are correctly handled and that unnecessary metadata is removed from the final build artifacts.

Highlights

  • Dependency Management: Enforced a consistent Guava version across all modules by adding it to the dependencyManagement section in the root pom.xml.
  • Shaded Jar Configuration: Updated shade plugin filters in v2/pom.xml to exclude Maven metadata from additional shaded artifacts, ensuring cleaner build outputs.
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. ↩

@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 Maven configuration files. In pom.xml, it enforces an updated version of Guava across all modules by adding a dependency management entry. In v2/pom.xml, it updates the maven-shade-plugin filters to use a wildcard for Beam vendor artifacts and adds exclusions for bigtable-hbase and hadoop-shaded-guava. There are no review comments, and I have no feedback to provide.

@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.70%. Comparing base (288b0f9) to head (b6772d1).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #4583   +/-   ##
=========================================
  Coverage     59.70%   59.70%           
  Complexity     8384     8384           
=========================================
  Files          1121     1121           
  Lines         72595    72595           
  Branches       8819     8819           
=========================================
+ Hits          43340    43341    +1     
+ Misses        26361    26360    -1     
  Partials       2894     2894           
Components Coverage Δ
spanner-templates 83.96% <ø> (-0.01%) ⬇️
spanner-import-export 72.74% <ø> (ø)
spanner-live-forward-migration 87.53% <ø> (-0.02%) ⬇️
spanner-live-reverse-replication 79.76% <ø> (-0.02%) ⬇️
spanner-bulk-migration 88.23% <ø> (-0.01%) ⬇️
gcs-spanner-dv 86.42% <ø> (-0.02%) ⬇️
see 2 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 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.

I verified that this fixed the guava version reported in META-INF.

@Abacn

Abacn commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

testKafkaToBigQueryAvroWithStorageApiExistingDLQ failed with 400 code BigQuery job BigQueryException: The job encountered an error during execution. Retrying the job may solve the problem. during verification. Dataflow job itself succeeded

merging for now

@Abacn
Abacn merged commit ba8c0c9 into GoogleCloudPlatform:main Nov 18, 2026
67 of 73 checks passed
@Abacn
Abacn deleted the further-exclude-shade branch November 18, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants