My project consist of submodule that I push on Github publicly. But my main repo is private repository. I would like to deploy my Springboot App to Heroku. I tried to follow this step from Heroku.
When I push and deploy to Heroku, the error occurred.
remote: > Task :generateGitProperties FAILED
remote:
remote: FAILURE: Build failed with an exception.
remote:
remote: * What went wrong:
remote: Execution failed for task ':generateGitProperties'.
remote: > No .git directory found!
How to solve this problem on heroku?
edit: I tried to remove the submodule first, and the git directory not found issue still found.
I managed to solve this problem.
It doesn't have anything to do with submodules. The problem was in the gradle plugin.
I put following plugin in the build.gradle
id 'com.gorylenko.gradle-git-properties' version '2.0.0'
This plugin caused :gitGitProperties
build failed occurred. So I just removed the plugin and it works :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With