The Gradle team is excited to announce Gradle 8.6-milestone-1.
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:
Switch your build to use Gradle 8.6-milestone-1 by updating your wrapper:
./gradlew wrapper --gradle-version=8.6-milestone-1
See the Gradle 8.x upgrade guide to learn about deprecations, breaking changes and other considerations when upgrading to Gradle 8.6-milestone-1.
For Java, Groovy, Kotlin and Android compatibility, see the full compatibility notes.
A new named(Spec<String>)
method has been added to all NamedDomainObject containers, which simplifies name-based filtering and eliminates the need to touch any of the values, may they be realized or unrealized.
Providers
can now be passed to capability methods ConfigurationPublications#capability(Object)
, ModuleDependencyCapabilitiesHandler#requireCapability(Object)
, and CapabilitiesResolution#withCapability(Object, Action)
.
Gradle provides a rich set of error and warning messages to help you understand and resolve problems in your build.
Dependency locking is a mechanism for ensuring reproducible builds when using dynamic dependency versions.
This release improves error messages by separating the error from the possible action to fix the issue in the console output. Errors from invalid lock file format or missing lock state when strict mode is enabled are now displayed as illustrated below:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':dependencies'.
> Could not resolve all dependencies for configuration ':lockedConf'.
> Invalid lock state for lock file specified in '<project>/lock.file'. Line: '<<<<<<< HEAD'
* Try:
> Verify the lockfile content. For more information on lock file format, please refer to https://docs.gradle.org/8.6-milestone-1/userguide/dependency_locking.html#lock_state_location_and_format in the Gradle documentation.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
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.
Known issues are problems that were discovered post release that are directly related to changes made in this release.
We love getting contributions from the Gradle community. For information on contributing, please see gradle.org/contribute.
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 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.