If Maven 4 refreshes all its APIs to Java 21 using the latest Java features, it is OK to require JDK 21. It is good to update the whole Maven ecosystem to align with Maven 4 APIs.
If not, why do we stick to JDK 21 for Maven 4? --- Regards, *Hantsy Bai* Self-employed consultant, fullstack developer, agile coach, freelancer/remote worker GitHub: https://github.com/hantsy Twitter: https://twitter.com/@hantsy Medium: https://medium.com/@hantsy On Fri, May 2, 2025 at 5:47 AM Tibor Digana <tibordig...@apache.org> wrote: > +1 > Tibor Digana > > On Wed, Apr 30, 2025 at 3:12 PM Matthias Bünger <mbuen...@apache.org> > wrote: > > > Hi everyone, > > over the last years we had several discussions about lifting the > > required Java version to run Maven from 8 to something higher. You can > > find them in the mail archive. > > In February 2024 we decided to lift it to 17 (see result: [1*]). > > > > An argument to pick 17 instead of 21 was to take the (at the point of > > voting) second last JDK for which vendors offer LTS (Note: LTS is > > important for companies). > > With Java 25 (next with LTS) coming in September and a final Maven 4.0.0 > > on the horizon (no date yet), I think we should raise the minimum > > version once more and use Java 21, which will be the second last > > "LTS-JDK" in September. Doing this brings the benefit of avoid locking > > into an "already considered old" version (and of course the improvements > > of Java 18-21). > > > > In a chat with several PMC, committers and contributors nobody saw > > strong disadvantages on this. Therefore, I want to start the official > > vote to set the minimal Java bytecode target of Maven-Core 4 to 21, > > meaning Java 21 is required for Maven 4. > > > > This is a procedural majority vote [2*]. You can also vote with > > fractions and negative votes are not vetoes. > > Please refrain from starting discussions in this thread, but do include > > a reasoning on downvotes and feel free to start a new discussion on the > > mailing list. > > > > The vote is open for at least 72 hours. > > > > Please also notice: > > * Maven 3 will stay at Java 8. > > * It's about the minimum Java version to run Maven 4, not to compile > > applications against. With Java 21 you can compile down to Java 8. For > > special JDK needs, also toolchain tools can be used. > > > > > > Have a sunny day everyone > > > > Matthias > > > > [1*]: https://lists.apache.org/thread/bfkvvjftrxypp06yj8zj919fcz0dt2zt > > [2*]: https://www.apache.org/foundation/voting.html > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > >