Skip to content

build: upgrade dependencies for Java 25 compatibility - #96

Merged
paul58914080 merged 3 commits into
societe-generale:mainfrom
benhinssenCCV:bump-java-25
Nov 27, 2025
Merged

build: upgrade dependencies for Java 25 compatibility#96
paul58914080 merged 3 commits into
societe-generale:mainfrom
benhinssenCCV:bump-java-25

Conversation

@benhinssenCCV

Copy link
Copy Markdown
Contributor

Summary

Upgrade project dependencies to support Java 25, ensuring compatibility with the latest Java LTS version.

Details

This PR upgrades critical dependencies to resolve Java 25 compatibility issues:

  • Java: Bumped from 21 to 25
  • Mockito: Upgraded from 5.14.1 to 5.20.0 (includes ByteBuddy 1.15.10+ with Java 25 support)
  • JaCoCo: Upgraded from 0.8.11 to 0.8.13 for Java 25 compatibility
  • ArchUnit: Maintained at 1.4.1 (already compatible with Java 25)

Context

Java 25 introduced internal changes to the javac compiler APIs that broke compatibility with older ByteBuddy versions used by Mockito. The previous versions were causing java.lang.ExceptionInInitializerError with TypeTag :: UNKNOWN errors during test instrumentation.

By upgrading Mockito to the latest version, we gain ByteBuddy 1.15.10+ which provides proper support for Java 25's internal compiler structures. JaCoCo 0.8.13 similarly adds Java 25 support for code coverage instrumentation.

Environments impacted: All - this is a JDK version upgrade affecting the entire build and test infrastructure.

Checklist:

  • I've added tests for my code
  • Documentation has been updated accordingly to this PR

Related issue :

N/A

Ben Hinssen added 2 commits October 24, 2025 14:02
- Bump Java version from 21 to 25
- Upgrade Mockito from 5.14.1 to 5.20.0 (includes ByteBuddy 1.15.10+ with Java 25 support)
- Upgrade JaCoCo from 0.8.11 to 0.8.13 for Java 25 compatibility
This resolves TypeTag instrumentation errors that occurred with older ByteBuddy versions on Java 25.
@paul58914080
paul58914080 changed the base branch from backup-master to main November 27, 2025 09:28
@paul58914080
paul58914080 requested a review from a team as a code owner November 27, 2025 09:28
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@0acf9c2). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #96   +/-   ##
=======================================
  Coverage        ?   77.57%           
  Complexity      ?      142           
=======================================
  Files           ?       33           
  Lines           ?      660           
  Branches        ?       65           
=======================================
  Hits            ?      512           
  Misses          ?      122           
  Partials        ?       26           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@paul58914080

Copy link
Copy Markdown
Member

Thank you for your contribution @benhinssenCCV

@paul58914080 paul58914080 changed the title chore: upgrade dependencies for Java 25 compatibility build: upgrade dependencies for Java 25 compatibility Nov 27, 2025
@paul58914080
paul58914080 merged commit 86fdce6 into societe-generale:main Nov 27, 2025
2 checks passed
@benhinssenCCV

Copy link
Copy Markdown
Contributor Author

Thanks @paul58914080 !

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