The Gradle team is excited to announce Gradle 6.1-milestone-2.
This release features 1, 2, ... n, and more.
We would like to thank the following community contributors to this release of Gradle:
Mark Nordhoff, Kazuki Matsuda, Emmanuel Guérin, Nicholas Gates, Bjørn Mølgård Vester, Johnny Lim, Benjamin Muskalla, Ian Kerins Vladimir Sitnikov, Michael Ernst, and Nelson Osacky.
Switch your build to use Gradle 6.1-milestone-2 by updating your wrapper:
./gradlew wrapper --gradle-version=6.1-milestone-2
See the Gradle 6.x upgrade guide to learn about deprecations, breaking changes and other considerations when upgrading to Gradle 6.1-milestone-2.
For Java, Groovy, Kotlin and Android compatibility, see the full compatibility notes.
With this release, the Gradle Dependency cache, that is the content under $GRADLE_HOME/caches/modules-2
, can be relocated, for data cached by Gradle version 6.1 and later. This enables its copy from host to host, allowing to fully leverage all the cached information: artifacts downloaded and metadata parsed.
Note that priming the cache and consuming it needs to use the same Gradle version for maximum effect. See the documentation for details on this.
This is one step in helping out ephemeral CI setups where host images can be seeded with dependency cache content, reducing the amout of downloads during the build.
TestLauncher
can select specific methodsThe TestLauncher
interface in the Tooling API is capable of launching tests by specifying the name of the test classes or methods. If there are multiple test tasks contain those test classes/methods, then all tasks are executed. This is not ideal for IDEs: developers usually want to execute only one test variant at the time. To overcome this, Gradle 6.1 introduces the withTaskAndTestClasses()
and withTaskAndTestMethods()
methods.
TBD - Managed properties of type DomainObjectSet<T>
now supported.
TBD - ObjectFactory
has a method to create ExtensiblePolymorphicDomainObjectContainer
instances. TBD - ObjectFactory
has a method to create NamedDomainObjectSet
instances. TBD - ObjectFactory
has a method to create NamedDomainObjectList
instances.
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.