Skip to content

3.0 M2

Pre-release
Pre-release
Compare
Choose a tag to compare
@eriwen eriwen released this 21 Jun 23:31
· 78401 commits to master since this release
v3.0.0-M2

General Notes

This second milestone leading up to Gradle 3.0 builds on 3.0 M1 with several key improvements listed below.

Give 3.0 M2 a try for yourself. See the Getting Started and Providing Feedback sections below for details.

For more information, see the announcement blog post and detailed release notes.

A Note About Compatibility and Support

This release is intended as a preview for new features we'll be releasing soon in Gradle 3.0. As such, it is not intended to be used in a production environment and features may change significantly before they are released in Gradle 3.0.

New Features and Improvements since 3.0 M1

  • Initial Java 9 Support. Gradle now runs properly when run on the latest JDK 9 EAP builds, and users can build and run tests for their own projects against JDK 9 as well. Note, however, that Gradle does not yet support Jigsaw modules or JDK 9-specific compile options such as -release and -modulepath.
  • Performance Improvements and new Performance Guide. A number of performance improvements have acculmulated over the last several Gradle releases, and it's a good time to try them out for yourself in 3.0 M2. For details on many of these improvements, see Cédric's blog post. We're also pleased to make available a draft of our new Performance Guide. This is intended to be a short (13-page) guide that allows you to dramatically improve your build performance over the course of an afternoon. Check it out and please provide any feedback via the guide's GitHub Issues.
  • Improved Kotlin build scripting. Gradle 3.0 M2 includes the newly-released Gradle Script Kotlin 0.2.0. Users can now modify the build script classpath and apply plugins in Kotlin-based build scripts, and project import into IDEA is now seamless. See the Gradle Script Kotlin 0.2.0 release notes for details, samples and getting started instructions.

Getting Started

Set your Gradle wrapper version to 3.0-milestone-2 as follows:

$ cd $YOUR_GRADLE_PROJECT
$ gradle wrapper --gradle-version 3.0-milestone-2

Then run the wrapper to trigger download and installation:

$ ./gradlew --version
Downloading https://services.gradle.org/distributions/gradle-3.0-milestone-2-bin.zip
....................................................................................
....................................................................................
------------------------------------------------------------
Gradle 3.0-milestone-2
------------------------------------------------------------
[...]

Now continue to operate the build via the ./gradlew wrapper as you normally would and experiment with the new features as you go.

Providing Feedback

If you believe you've found an issue with Gradle 3.0 M2 or simply have a question about it, please:

  • Post a topic in the 3.0 M2 feedback category of the Gradle Forums
  • Paste the output of ./gradlew --version so we can see relevant OS and JDK information
  • Provide, if possible, a small example that reproduces the problematic behavior