Should you include or ignore gradle-wrapper.properties

GitGradleAndroid Gradle-Plugin

Git Problem Overview


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?

Git Solutions


Solution 1 - Git

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.

Solution 2 - Git

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionReid BakerView Question on Stackoverflow
Solution 1 - GitXavier DucrohetView Answer on Stackoverflow
Solution 2 - GitPeter NiederwieserView Answer on Stackoverflow