Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

:generateGitProperties git submodule Build FAILED in Heroku

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.

like image 492
chronos14 Avatar asked Aug 30 '25 15:08

chronos14


1 Answers

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 :)

like image 124
chronos14 Avatar answered Sep 02 '25 17:09

chronos14