-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git.properties is missing when building with gradle 5.1.x, gradle 5.2.x #128
Comments
@tha2015 can you please clarify, what is suggested work-around? |
@n0mer No, I don't know how to avoid it. |
In v2.2.0, the new property key ( gitPropertiesResourceDir ) will allow putting git.properties file in a different directory to avoid this issue. So closing this issue. |
For single project: on the first time when building the code (after checking out form git), the git.properties file might be missing.
example.zip
Issue happens all the time
For a project with subprojects, the issue will happen all the time.
project2.zip
Issue happens only for the first time
Root cause: processResources task which is executed after generateGitProperties task might delete build\resources\main directory (including the git.properties inside) because it thinks the folder is not clean
generateGitProperties task ->processResources task (will print message: Deleting stale output file: build\resources\main)
Example projects are attached above
The text was updated successfully, but these errors were encountered: