How Gradle Is Javamaxxing
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
Gradle is aggressively adopting newer JDK releases to improve build performance, a strategy they call 'Javamaxxing.' Gradle 9.0 raised the minimum daemon JVM to Java 17, and Gradle 10 will require Java 21. Newer JDKs bring free performance gains through better GC, JIT compilation, and new APIs like Compact Object Headers (JEP 519) and the Class-File API (JEP 484). Critically, upgrading the JDK that runs Gradle does not force projects to target newer Java versions — JVM toolchains fully decouple the daemon JVM from the compilation and test JVMs, so you can run Gradle on JDK 26 while still producing Java 8 bytecode. About 80% of Gradle 9 users are already on Java 21+, making it a reasonable new minimum floor.
Table of contents
Table of ContentsIntroductionTL;DR #NOT TL;DR #What Is the Current State of Gradle and Java? #Why Bother? Because Newer JDKs Make Gradle Faster #How Does Gradle Decide When to Raise the Floor? #Summary #DiscussSort: