Skip to content

Make project compatible with Java 17#385

Merged
psx95 merged 1 commit intoGoogleCloudPlatform:mainfrom
psx95:java-17-build
Dec 9, 2024
Merged

Make project compatible with Java 17#385
psx95 merged 1 commit intoGoogleCloudPlatform:mainfrom
psx95:java-17-build

Conversation

@psx95
Copy link
Copy Markdown
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
@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