gradle: fix "repository not found" (#1309)

Fixes: "repository not found: C:\Users\name\.gradle\daemon\5.5.1.git"
This commit is contained in:
ThatGamerBlue
2019-08-12 22:13:20 +01:00
committed by GitHub
parent 946e135e11
commit d8d65c6411

View File

@@ -17,7 +17,7 @@ plugins {
apply plugin: 'application'
ext {
grgit = org.ajoberstar.grgit.Grgit.open(dir: '.')
grgit = org.ajoberstar.grgit.Grgit.open(dir: "${rootProject.projectDir}")
localGitCommit = grgit.head().id
localGitCommitShort = grgit.head().getAbbreviatedId(7)
localGitDirty = !grgit.status().clean