Skip to content

chore(deps): align logback versions in google-cloud-jar-parent #13678

Merged
lqiu96 merged 1 commit into
mainfrom
fix-logback-mismatch
Jul 7, 2026
Merged

chore(deps): align logback versions in google-cloud-jar-parent #13678
lqiu96 merged 1 commit into
mainfrom
fix-logback-mismatch

Conversation

@lqiu96

@lqiu96 lqiu96 commented Jul 7, 2026

Copy link
Copy Markdown
Member

Align logback-classic and logback-core to 1.5.33 in google-cloud-jar-parent to fix the version mismatch on Java 11+. Remove local logback-classic override from google-cloud-storage to inherit the aligned version.
Add a java8-logback profile in java-storage/pom.xml to manage both logback dependencies to 1.3.16 when running in a Java 8 environment, maintaining test compatibility.

Align `logback-classic` and `logback-core` to `1.5.33` in
`google-cloud-jar-parent` to fix the version mismatch on Java 11+.
Remove local `logback-classic` override from `google-cloud-storage` to
inherit the aligned version.
Add a `java8-logback` profile in `java-storage/pom.xml` to manage both
logback dependencies to `1.3.16` when running in a Java 8 environment,
maintaining test compatibility.

TAG=agy
CONV=d1b443f9-5dae-4a94-afc1-e1c33d78a802

@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 Logback dependency to version 1.5.33 in the parent POM and removes the hardcoded version from the Google Cloud Storage POM. Additionally, it introduces a Maven profile to automatically downgrade Logback to version 1.3.16 when running in a Java 8 environment, ensuring compatibility since Logback 1.5.x requires Java 11 or higher. I have no feedback to provide.

Comment thread java-storage/pom.xml

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.

Would it make sense to put this in google-cloud-jar-parent/pom.xml? Would other modules need this as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I was looking at all the other modules and I don't see them managing their own version of logback-classic. I don't think it makes sense for storage to do it, but they may have some historical reason so I've kept it just for them.

@lqiu96
lqiu96 marked this pull request as ready for review July 7, 2026 16:20
@lqiu96
lqiu96 requested review from a team as code owners July 7, 2026 16:20
@lqiu96
lqiu96 enabled auto-merge (squash) July 7, 2026 16:22
@lqiu96
lqiu96 requested a review from jinseopkim0 July 7, 2026 16:23
@lqiu96 lqiu96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 7, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 7, 2026
@lqiu96 lqiu96 changed the title fix(deps): align logback versions and add java8 profile in storage chore(deps): align logback versions in google-cloud-jar-parent Jul 7, 2026
@lqiu96
lqiu96 merged commit 7e57092 into main Jul 7, 2026
204 of 206 checks passed
@lqiu96
lqiu96 deleted the fix-logback-mismatch branch July 7, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants