mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Upgrade build files
This commit is contained in:
parent
e1db27010c
commit
4d0bd8a3a3
@ -32,11 +32,11 @@ ext {
|
|||||||
git = Grgit.open(dir: new File(rootDir.toString() + "/.git"))
|
git = Grgit.open(dir: new File(rootDir.toString() + "/.git"))
|
||||||
date = git.head().getDate().format("yy.MM.dd")
|
date = git.head().getDate().format("yy.MM.dd")
|
||||||
revision = "-${git.head().abbreviatedId}"
|
revision = "-${git.head().abbreviatedId}"
|
||||||
parents = git.head().parentIds;
|
parents = git.head().parentIds
|
||||||
if (project.hasProperty("buildnumber")) {
|
if (project.hasProperty("buildnumber")) {
|
||||||
buildNumber = "$buildnumber"
|
buildNumber = "$buildnumber"
|
||||||
} else {
|
} else {
|
||||||
index = -2042; // Offset to match CI
|
index = -2042 // Offset to match CI
|
||||||
for (; parents != null && !parents.isEmpty(); index++) {
|
for (; parents != null && !parents.isEmpty(); index++) {
|
||||||
parents = git.getResolve().toCommit(parents.get(0)).getParentIds()
|
parents = git.getResolve().toCommit(parents.get(0)).getParentIds()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user