Thank you for bringing this up, this makes a lot of sense, especially with Java 25 just around the corner. So, +1 from my side.
However, I want to raise a concern and will start a separate thread for it soon. While there are several initiatives in progress, there still seems to be no new initiative addressing the blocker we previously raised here [1]. [1] - https://lists.apache.org/thread/lcrhw2pl0n4qtzv7qf6j1p3b08qz35jy On Wed, Jul 30, 2025 at 7:54 AM Tibor Zimányi <[email protected]> wrote: > > Hi everyone, > > as Java 21 is the latest Java LTS available, already for some time, I would > like to propose that the code should be buildable and runnable with Java > 21, while still retaining compatibility with Java 17. > > The work should be split into two phases like this: > Phase 1: > - Setting the release property: > <maven.compiler.release>17</maven.compiler.release>. > - This should make sure the code works with Java 17. > - This should make sure that the existing CI still works the same way > and is able to build releases etc., because even if we have Java 17 as a > build environment, with the setting, it should work. > - Fixing the problems that occur while trying to build the repositories > with Java 21 and are caused by Java 21. > - Fixing the problems that occur while running tests with Java 21 and are > caused by Java 21. > - Updating the images we publish and need JDK to contain JDK 21 instead of > 17. > - Target of the work are all Apache KIE repositories, mainly: > incubator-kie-drools, incubator-kie-optaplanner, > incubator-kie-kogito-runtimes, incubator-kie-kogito-apps, > incubator-kie-kogito-examples, incubator-kie-tools. > > Phase 2: > - Update the KIE CI to use Java 21 by default. This means: > - Making sure PR checks run with Java 21. > - Making sure the release builds run with Java 21. > > What do you think, please? I plan to open a vote on Monday based on the > feedback of this discussion. Finding people to do this work is already > done, at least for Phase 1. > > Best regards, > Tibor --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
