Update to Gradle 2.0

http://www.gradle.org/docs/current/release-notes
Credit Roberto Tyley for Gradle 2.0 update
Merge remote-tracking branch 'origin/ha-feature-gradle-2.0'