Only ignore the build directory in the same directory as .gitignore for Gradle
@@ -1,5 +1,5 @@
.gradle
-build/
+/build/
# Ignore Gradle GUI config
gradle-app.setting