Updated Gradle script to support v0.12