Gradle 5.2 Now Available, Here’s What’s New


Just a few weeks after releasing Gradle  5.1, the team behind Gradle has released a quick update to their popular Java and Android development tool with Gradle 5.2, with added plugin enhancements for Java and C++.

Gradle 5.2 has a new Java plugin for declaring platforms for the Java ecosystem. This java plugin platform could include modules published in sets of the same version. These can also share the sets dependency versions between subprojects or a set of versions from heterogeneous libraries. These platforms can then be published with the Gradle metadata file format or as Maven bills of materials.

Here’s what’s new Gradle 5.2:

  • New C++ plugins that rely on a domain-specific language (DSL) and configuration model. When the plugin is applied to the project, Gradle registers an extension for the type of project, be it an application or library. Configuration is done through this extension or tasks registered by the plugin. The plugins support C++ libraries and applications on Windows, Linux, and MacOS.
  • Incremental and parallel compilation is supported, along with cachable compilation using Gradle’s build cache. Dependency management is available, similar to Java projects built with Gradle.
  • Gradle 5.2 has new project types for gradle_init.
  • Service injection into plugins and project extensions, in which services can be injected into the elements of a container built using the container(Class) method. This can simplify plugin implementation. Services can be injected into an instance as constructor parameters or using a property getter method, for types in which service injection is available.
  • Gradle Kotlin DSL 1.1.3, which provides bug fixes and Kotlin 3.20.

You can download Gradle 5.2 update from the project website here.


Leave a Reply

Get a Free Consultation