Should you include or ignore gradle-wrapper.properties

When working on a team of android developers using gradle as your build system. Should you include gradle/wrapper/gradle-wrapper.properties in git, or should it be part of your .gitignore?

Answers


It should be included in your git repo.

By using it with gradlew, this will ensure all your developers (and your build servers!) always use the same version of Gradle. This way you know that every one is building the same exact way.


It should be put under source control, as it's necessary for gradlew to work properly.


Need Your Help

Gson optional and required fields

json gson

How should one deal with Gsonand required versus optional fields?

Sublime text 2 - find and replace globally ( all files and in all directories )

replace ide find sublimetext2 global

Is there any way to find and replace text string automatically in all folder's files?