The Gradle team is excited to announce Gradle 7.6.
This release includes building and running code with Java 19, a flag to rerun tasks individually, a new strongly-typed dependencies block for JVM test suites, and a pluggable system for Java Toolchains provisioning.
As always there are also performance improvements like enhancements to the configuration cache and incremental compilation.
We would like to thank the following community members for their contributions to this release of Gradle: altrisi, aSemy, Ashwin Pankaj, Aurimas, BJ Hargrave, Björn Kautler, Bradley Turek, Craig Andrews, Daniel Lin, David Morris, Edmund Mok, Frosty-J, Gabriel Feo, Ivan Gavrilovic, Jendrik Johannes, John, Joseph Woolf, Karl-Michael Schindler, Konstantin Gribov, Leonardo Brondani Schenkel, Martin d’Anjou, Michael Bailey, Pete Bentley, Rob Bavey, Sam Snyder, sll552, teawithbrownsugar, Thomas Broadley, urdak, Varun Sharma, Xin Wang
Table Of Contents
Upgrade instructions
Switch your build to use Gradle 7.6 by updating your wrapper:
./gradlew wrapper --gradle-version=7.6
See the Gradle 7.x upgrade guide to learn about deprecations, breaking changes and other considerations when upgrading to Gradle 7.6.
For Java, Groovy, Kotlin and Android compatibility, see the full compatibility notes.
New features and usability improvements
JVM
Added Support for Java 19
Gradle 7.6 supports compiling, testing and running on Java 19.
Introduced strongly-typed dependencies
block for JVM test suites
The JVM test suitedependencies
block now uses a strongly-typed API. This makes the build logic cleaner and improves assistance in the IDEs, especially with the Kotlin DSL.