Should you include or ignore gradle-wrapper.proper

2019-03-11 14:27发布

问题:

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?

回答1:

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.



回答2:

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