updated Gradle build script
merged build.gradle fix from upstream