Gradle Release Notes
Version 1.0-milestone-2
- New and Noteworthy
- Migrating from 1.0-milestone-1
- Fixed Jira Issues
New and Noteworthy
Sonar support
There is a new sonar plugin, which allows you to analyse your project using Sonar from your Gradle build.
Improvements to copy and archive tasks
Added CopySpec.includeEmptyDirs property, to control whether empty directories should be included in the copy output. The default behaviour is to include empty directories.
The CopySpec.into(dest) methods now accept a closure as the destination path, to allow for lazy evaluation of the destination path.
DSL Improvements
You can now specify the source files for a task through the DSL. Previously this was only possible by using the @SkipWhenEmpty annotation on a custom task class. The source files of a task are treated as input files. In addition, the task is skipped if the set of source files is declared and empty.
Other changes
- The idea plugin now provides an ideaModule.moduleName property, to allow you to customize the name of the generated IDEA module.
- The application plugin now provides an applicationName property, to allow you to customize the name of the application.
- The JUnit test report now shows ignored tests.
- The CodeNarc task logs violations to the console, in addition to writing it to the report.
- Project.files() now accepts parameters of type Iterable<?>, in addition to the many other types it supports.
- Some performance improvements in test execution, and when doing a clean build.
Updated dependencies
Build scripts are now executed using Groovy 1.7.10
Migrating from 1.0-milestone-1
Gradle 1.0-milestone-2 Breaking Changes
Fixed Jira Issues