git 你应该包括还是忽略 gradle-wrapper.properties
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21762180/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Should you include or ignore gradle-wrapper.properties
提问by Reid Baker
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?
在使用 gradle 作为构建系统的 android 开发团队中工作时。您应该在 git 中包含 gradle/wrapper/gradle-wrapper.properties,还是应该将其作为 .gitignore 的一部分?
回答by Xavier Ducrohet
It should be included in your git repo.
它应该包含在您的 git 存储库中。
By using it with gradlew, this will ensure all your developers (and your build servers!) alwaysuse the same version of Gradle. This way you know that every one is building the same exact way.
通过将它与gradlew一起使用,这将确保您的所有开发人员(以及您的构建服务器!)始终使用相同版本的 Gradle。通过这种方式,您知道每个人都在以完全相同的方式构建。
回答by Peter Niederwieser
It should be put under source control, as it's necessary for gradlew
to work properly.
它应该置于源代码控制之下,因为它是gradlew
正常工作所必需的。