Gradle 6.8.1 has been released. Gradle is an automated project build tool based on the concepts of Apache Ant and Apache Maven. It supports dependency management and multi-projects, similar to Maven, but simpler and lighter than it. It uses a Groovy-based domain-specific language to declare project settings instead of traditional XML.
This version greatly improves the performance of Kotlin DSL build script compilation , makes some improvements to Java toolchain support, including vendor selection, and makes it easy to perform any task in a composite build directly from the command line. This version also introduces a new dependency management API to achieve consistent resolution.
The main updates include:
- Kotlin DSL script compilation improvements
- Provides a higher cache hit rate for tasks with runtime classpaths
- Provides a higher cache hit rate when there are empty directories
-
Configuration cache improvements
-
Support composite build
-
Select Java toolchain by vendor and implementation
-
View all available Java toolchains
-
Gradle now allows users to execute tasks from the included build directly from the command line
-
The expected cycle between builds is now fully supported
-
Gradle document now contains a use for portfolio construction project to build software examples , as well as to build on constructed using a combination of software projects new chapter.
-
Gradle now allows developers to declare consistency between dependency configurations
-
In Gradle 6.8, you can now easily define the entire construction of the repository, by reading how to declare the entire repository for more information .
-
Added centralized declaration function for component metadata rules
-
Lock Gradle set dependencies, add support for Gradle
settings.gradle(.kts)
lock configuration -
JUnit XML report enhancements for test reruns
-
When using dependency injection when developing plugins, tasks or project extensions,
@Inject
annotations can now be used without explicitly importing them into the build script, just like how it works for other Gradle API classes -
Projects with customized source sets can be imported into Eclipse
-
By default, outdated TLS versions are no longer enabled
In addition, this version also fixes 11 bugs in the previous version. For details, please see: https://docs.gradle.org/current/release-notes.html