Gradle 2.12 released


(Pepper Lebeck-Jobe) #1

Gradle 2.12 is now available

The Gradle team is pleased to bring you Gradle 2.12. This release brings support for compile only dependencies, improved build script compilation speed and even better IDE support.

Gradle 2.12 now finally includes support for modeling compile only dependencies when using the Java plugin. This capability establishes a much clearer migration path for those coming from Maven and have build requirements for which leveraging ‘provided’ scope was typically the solution.

We’ve introduced some improvements to test execution from the Gradle command line. Support has been added for executing specific test suites and parameterized tests making test-driven development using Gradle even easier.

With each Gradle release we strive to not only make the command line Gradle experience better but also using Gradle in conjunction with your favorite IDE even more enjoyable. Using Gradle with IntelliJ IDEA and the IDEA plugin now works better than ever. Manually managing Java target compatibility settings is no longer necessary as the IDEA plugin will now ensure that Gradle and the IDE consistently use the same compiler settings.

Additionally, our commitment to improving performance with each release continues. Gradle 2.12 has the fastest build script compilation speeds of any Gradle version to date.

Check the 2.12 release notes for more information.

Upgrade Instructions

Switch your build to use Gradle 2.12 quickly by updating your wrapper properties:

./gradlew wrapper --gradle-version=2.12

Reporting Problems

If you find a problem with Gradle 2.12, please post a reply to this topic or create a new topic in Bugs. Be sure to include which operating system you are using, the version of Gradle you upgraded from and any steps you have found that reproduce your problem.

(Pepper Lebeck-Jobe) #2

This topic is now a banner. It will appear at the top of every page until it is dismissed by the user.

(Laszlo Kishalmi) #3

The gradle-tooling-api 2.12 is still missing from jcenter Please release it as well.

(Pepper Lebeck-Jobe) #4

Version 2.12 is now available on jcenter. However, we don’t push it there. We push it to our repo at

(ndebug) #5

Hi, I run this command gradlew.bat wrapper --gradle-version=2.12 in Android Studio, but I get an error: gradle version 2.2 is required current version is 1.6 I am using Android Studio version 1.5.1 in Windows 10

(Pepper Lebeck-Jobe) #6

This topic is no longer a banner. It will no longer appear at the top of every page.