Gradle Release Notes

The Gradle team is excited to announce Gradle 8.1-20230218160000+0000.

This release features 1, 2, ... n, and more.

We would like to thank the following community members for their contributions to this release of Gradle: Attila Király, Björn Kautler, DJtheRedstoner, JayaKrishnan Nair K, kackey0-1, Martin Bonnin, Martin Kealey, modmuss50, Sebastian Schuberth, valery1707, Xin Wang, Yanshun Li

Table Of Contents

Upgrade instructions

Switch your build to use Gradle 8.1-20230218160000+0000 by updating your wrapper:

./gradlew wrapper --gradle-version=8.1-20230218160000+0000

See the Gradle 7.x upgrade guide to learn about deprecations, breaking changes and other considerations when upgrading to Gradle 8.1-20230218160000+0000.

For Java, Groovy, Kotlin and Android compatibility, see the full compatibility notes.

New features, performance and usability improvements

Gradle Wrapper

Introduced labels for selecting the version

The --gradle-version parameter for the wrapper plugin now supports using predefined labels to select a version.

The allowed labels are:

More details can be found in the Gradle Wrapper section.

Configuration cache improvements

TODO - Java lambdas are supported, and unsupported captured values are reported. TODO - File collections queried at configuration time are treated as configuration inputs. TODO - File system repositories are fully supported including dynamic versions in Maven, Maven local, and Ivy repositories

Promoted features are features that were incubating in previous versions of Gradle but are now supported and subject to backwards compatibility. See the User Manual section on the “Feature Lifecycle” for more information.

The following are the features that have been promoted in this Gradle release.

Fixed issues

Known issues

Known issues are problems that were discovered post release that are directly related to changes made in this release.

External contributions

We love getting contributions from the Gradle community. For information on contributing, please see gradle.org/contribute.

Reporting problems

If you find a problem with this release, please file a bug on GitHub Issues adhering to our issue guidelines. If you're not sure that you're encountering a bug, please use the forum.

We hope you will build happiness with Gradle, and we look forward to your feedback via Twitter or on GitHub.