Update build.gradle to use Gradle version 0.5 and higher.