Skip to content

build: Ensure compatibility with newer Java versions by increasing our java build version #1251

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

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

aepfli
Copy link
Member

@aepfli aepfli commented Feb 27, 2025

this pull request updates our build java version to 21 - to enable the compiler option proc which we need for lombok to be working with newer java versions, see details further below

Furthermore we changing junit to use the bom, rather then specifying a version per artifact.

Java changed the way how it processes annotations:

As of JDK 23, annotation processing is only run with some explicit configuration of annotation processing or with an explicit request to run annotation processing on the javac command line.

this messes with lombok, this compiler configuration will change the default behavior, so it works with java 23

@aepfli aepfli requested a review from a team as a code owner February 27, 2025 15:02
@aepfli
Copy link
Member Author

aepfli commented Feb 27, 2025

okay this will be more complex than expected, the propery was introduced with java 21 - so we do not have this property within our build environment. We could increase the version of our build environment to 21 - than this would not be an issue anymore

@toddbaert
Copy link
Member

okay this will be more complex than expected, the propery was introduced with java 21 - so we do not have this property within our build environment. We could increase the version of our build environment to 21 - than this would not be an issue anymore

That seems fine to me

Copy link
Contributor

@chrfwow chrfwow left a comment

Choose a reason for hiding this comment

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

Looks good. Only one question regarding the mockito version

@aepfli aepfli changed the title build: Ensure compatibility with newer Java versions build: Ensure compatibility with newer Java versions by increasing our java build version Mar 3, 2025
Java changed the way how it processes annotations:

```
As of JDK 23, annotation processing is only run with some explicit configuration of annotation processing or with an explicit request to run annotation processing on the javac command line.
```

this messes with lombok, this compiler configuration will change the default behavior, so it works with java 23

Signed-off-by: Simon Schrottner <[email protected]>
@aepfli aepfli requested a review from chrfwow March 3, 2025 09:59
@toddbaert toddbaert merged commit 9b38305 into main Mar 5, 2025
5 checks passed
@toddbaert toddbaert deleted the aepfli-patch-1 branch March 5, 2025 03:57
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