Update .gitignore for compability with Gradle and add build.gradle file