Gradle build files

Redoing pull request.