Gradle Release Notes

Version 0.9.2

  1. New and Noteworthy
  2. Migrating from 0.9.1
  3. Fixed Jira Issues

New and Noteworthy

This is mainly a bug-fix release. However, there are a couple of minor improvements:

Simpler installation on Windows

The gradle.bat script no longer requires that you set the JAVA_HOME environment variable. It will simply pick up the version of Java from your PATH. You can still set JAVA_HOME if you prefer.

This behaviour has always been available in the gradle UNIX script.

Improvements to DSL

There are some changes to the Gradle build language to simplify writing rules in your build. Here's an example which changes the baseName for all Zip tasks:

0.9 0.9.2

tasks.withType(Zip).allObjects { zip ->
    zip.baseName = "gradle-${zip.name}"
}        
      


tasks.withType(Zip) {
    baseName = "gradle-${name}"
}        
      
There are a number of similar convenience methods available on {{DomainObjectCollection}}, which is used in many places in the build language. For more details see the API.

0.9.2 Breaking Changes

Have a look at Gradle 0.9.2 Release Notes for more information about the new features in this release

  1. Command-line changes
  2. IDEA and Eclipse plugin changes
  3. Deprecations

Command-line changes

IDEA and Eclipse plugin changes

Deprecations