Fix Gradle Script

This commit is contained in:
MattBDev
2019-07-30 15:28:25 -04:00
parent cb03ed2fe8
commit c4c90c99a8
2 changed files with 5 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ allprojects {
def buildNumber = ""
def date = ""
ext {
git = Grgit.open(dir: '.git')
git = Grgit.open(dir: new File(rootDir.toString()+'/.git'))
date = git.head().getDate().format("yy.MM.dd")
revision = "-${git.head().abbreviatedId}"
parents = git.head().parentIds;
@@ -63,6 +63,7 @@ allprojects {
version = String.format("%s.%s", rootVersion, buildNumber)
}
description = rootProject.name
subprojects {
@@ -191,4 +192,4 @@ task aggregatedJavadocs(type: Javadoc, description: 'Generate javadocs from all
includes += javadocTask.includes
}
}
}
}