Open ndeso17 opened 2 years ago
Error build gradle : Caused by: java.lang.IllegalStateException: No .git directory found! In script-git-version.gradle
buildscript { repositories { jcenter() } dependencies { classpath 'org.ajoberstar.grgit:grgit-core:4.1.1' } } import org.ajoberstar.grgit.Grgit ext { git = Grgit.open(currentDir: projectDir) gitCommitHash = git.head().abbreviatedId gitNumberOfCommits = git.log().size() gitTagDescription = git.describe(tags: true) git.close() }
Hey @ndeso17! Did you check out the git repository correctly?
Error build gradle : Caused by: java.lang.IllegalStateException: No .git directory found! In script-git-version.gradle