Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make project compatible with Java 17 #385

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

psx95
Copy link
Contributor

@psx95 psx95 commented Dec 7, 2024

Mockito 3.5.x is incompatible when building with Java 17, therefore an update to a more recent version of Mockito is required. There have been breaking changes in Mockito's releases which are difficult to point out. Some tests required code changes to make them compatible with these changes.
Only breaking change that affected this codebase was the handling of static mocks.

This change only makes the project compatible with Java 17.

  • Minimum Java version required to build is Java 11.
  • Artifacts produced are still Java 8 compatible, unless otherwise stated.

Mockito 3.x is also ~5 yrs old at this point.

Mockito 3.5.x is incompatible when building with Java 17, therefore an
update to a more recent version of Mockito is required. There have been
breaking changes in Mockito's releases which are difficult to point out.
Some tests required code changes to make them compatible with these
changes.
Only breaking change that affected this codebase was the handling of
static mocks.
@psx95 psx95 requested a review from a team as a code owner December 7, 2024 00:17
@psx95 psx95 merged commit c19b136 into GoogleCloudPlatform:main Dec 9, 2024
18 checks passed
@psx95 psx95 deleted the java-17-build branch December 9, 2024 15:54
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.

4 participants