Credit Roberto Tyley for Gradle 2.0 update