lhotari opened a new pull request, #25453: URL: https://github.com/apache/pulsar/pull/25453
### Motivation Java 25 (early access) support is needed to ensure Pulsar stays compatible with upcoming JDK releases. This PR adds the build infrastructure to build with Java 25 and run tests on different JDK versions (17, 21, 25). ### Modifications - **Java version enforcement**: Require Java 21 or 25 to build Pulsar (configurable in `settings.gradle.kts`, skippable with `-PskipJavaVersionCheck`) - **Test JDK selection**: Add `-PtestJavaVersion=<version>` Gradle property to run tests on a specific JDK using Gradle's Java Toolchain API (configuration cache compatible) - **Docker image JDK override**: Add `-PdockerJavaVersion=<version>` to override the JDK version used in Docker test images, with version catalog override support in `settings.gradle.kts` - **CI matrix updates**: Update `pulsar-ci.yaml` to use Java 25 for scheduled builds, pass `-PtestJavaVersion` to integration test runs, and properly set up multiple JDK versions when `runtime_jdk` differs from the build JDK - **Java 25 incompatibilities**: Disable `tiered-storage-file-system` tests on Java 25 (Hadoop MiniDFSCluster depends on Jetty 9 which is incompatible with Java 25) ### Verifying this change - [x] Make sure that the change passes the CI checks. This change is already covered by existing tests. The build infrastructure changes were verified by running `./gradlew assemble` and `./gradlew assemble -PdockerJavaVersion=25` successfully. ### Does this pull request potentially affect one of the following parts: - [x] Dependencies (add or upgrade a dependency) - [ ] The public API - [ ] The schema - [ ] The default values of configurations - [ ] The threading model - [ ] The binary protocol - [ ] The REST endpoints - [ ] The admin CLI options - [ ] The metrics - [ ] Anything that affects deployment ### Documentation - [x] `doc-not-needed` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
