Upgrading to Gradle 1.12

Fix issues with internal script.