Fix gradle script

This commit is contained in:
NotMyFault 2019-08-04 18:40:39 +02:00 committed by GitHub
parent 59517647b5
commit 7542dbeab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ def revision = ""
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;
@ -43,7 +43,6 @@ ext {
}
}
// version = String.format("%s.%s%s%s", rootVersion, date, revision, buildNumber)
version = String.format("%s.%s", rootVersion, buildNumber)
description = rootProject.name