ZOOKEEPER-5039: Raise to min JDK 17, also build, test with JDK25#2376
ZOOKEEPER-5039: Raise to min JDK 17, also build, test with JDK25#2376PDavid wants to merge 10 commits intoapache:masterfrom
Conversation
|
OK, Mockito 5 requires Java 11 or higher. It will not work with Java 8. Do we have to support Java 8 on ZooKeeper master branch? |
|
I think we can drop Java 8 support on the master branch. Please follow the discussion on the dev@ list. |
As of Mockito 5.x, the mockito-inline mock-maker became the default, so mockito-inline as a separate artifact is no longer needed.
- Upgraded spotbugs-maven-plugin to 4.9.3.0 and annotations to 4.9.3. - Overrode ASM to 9.9.1 in the plugin dependencies to support JDK 25 (class file version 69). - Added newly found bug patterns to excludeFindBugsFilter.xml - these are all pre-existing issues in the codebase that the newer SpotBugs detects but the old version couldn't.
to fix test issue: Caused by: io.github.toolfactory.jvm.util.ObjectProvider$BuildingException: Exception occurred while retrieving the implementation of class io.github.toolfactory.jvm.function.catalog.ConstructorInvokeFunction (jvm architecture: x64, jvm version: 25, jvm vendor: Eclipse Adoptium)
a72fee0 to
e413971
Compare
Exception message differs now a bit.
|
It seems only changing the Jenkins file did not worked out: https://ci-hadoop.apache.org/job/zookeeper-precommit-github-pr/job/PR-2376/5/console Wrote to ASF Slack builds channel if thy can install / configure JDK 17 / JDK 25 for us. |
Might be (just guessing) |
|
|
anmolnar
left a comment
There was a problem hiding this comment.
Lgtm. Please update and test Java version in dev/docker/Dockerfile as well.
Thanks!
Also update Maven to 3.9.6 - it includes several improvements. Since the old `jdk` and `openjdk` tags are deprecated, we should use the newer vendor-specific tags. Use Eclipse Temurin since we already use it in our GH: Actions workflows.
| # | ||
|
|
||
| FROM maven:3.8.4-jdk-11 | ||
| FROM maven:3.9.6-eclipse-temurin-17 |
There was a problem hiding this comment.
Since the old jdk and openjdk tags are deprecated, we should use the newer vendor-specific tags. Use Eclipse Temurin since we already use it in our GH: Actions workflows.
Also update Maven to 3.9.6 - it includes several improvements.
Uh oh!
There was an error while loading. Please reload this page.