Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 28 million developers.Sign up
The Gradle team is pleased to announce Gradle 4.2.
First and foremost, progress has been made to improve Gradle's support for building native applications. The first outcome is parallel task execution for native compilation and linking tasks by default. This has reduced build times for native performance scenarios by as much as half.
Native apps aren't the only ones that will benefit from upgrading to Gradle 4.2. We've been working hard to ensure the build cache introduces very little overhead; builds that resolve all task outputs from the local build cache are up to 20% faster due to improvements in unpacking. Another significant performance improvement comes from
tarTree now avoiding redundant tree visitation.
Next up, first-class support for Google Cloud Storage backed repositories! You can publish and consume using the
maven-publish plugins. This works similarly to our Amazon S3 support, check out the samples in the user manual.
Play framework support is upgraded in Gradle 4.2: Play v2.6, built-in Twirl template types and user-defined Twirl formats are now supported. This version of Gradle introduces new on-demand rebuild and reload for
PlayRun. This is different from
--continuous build and gives a more pleasant development experience for some workflows.
Gradle Kotlin DSL v0.11.1 (included in this release) brings the latest and greatest Kotlin (1.1.4-3) and takes big steps toward general usability with utilities for Groovy-heavy DSLs such as Maven POM customization, Ant usage and those provided by Groovy-based community plugins. Other improvements include better Gradle API null-safety, new samples, and improvements to the
Last but not least, if your custom plugin is using the
Instantiator (most-used internal API according to BigQuery public GitHub data), please migrate to the
ObjectFactory API for nested DSLs, new in Gradle 4.2.
Important deprecation notices
Support for running Gradle on Java 7 is deprecated and will be removed in Gradle 5.0; Java 7 reached end-of-life in April 2015. However, you will still be able to compile, test, generate Javadoc and execute applications for Java 6 and Java 7 using cross-compilation
Switch your build to use Gradle 4.2 quickly by updating your wrapper properties:
./gradlew wrapper --gradle-version=4.2
Standalone downloads are available at https://gradle.org/install.