Upgraded to be compatible with Gradle 2.0

This breaks compatibility with Gradle 1.x