-
Notifications
You must be signed in to change notification settings - Fork 51
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
Conversation
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 |
There was a problem hiding this 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
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]>
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 belowFurthermore we changing junit to use the bom, rather then specifying a version per artifact.
Java changed the way how it processes annotations:
this messes with lombok, this compiler configuration will change the default behavior, so it works with java 23