mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +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"))
|
||||
date = git.head().getDate().format("yy.MM.dd")
|
||||
revision = "-${git.head().abbreviatedId}"
|
||||
parents = git.head().parentIds;
|
||||
parents = git.head().parentIds
|
||||
if (project.hasProperty("buildnumber")) {
|
||||
buildNumber = "$buildnumber"
|
||||
} else {
|
||||
index = -2042; // Offset to match CI
|
||||
index = -2042 // Offset to match CI
|
||||
for (; parents != null && !parents.isEmpty(); index++) {
|
||||
parents = git.getResolve().toCommit(parents.get(0)).getParentIds()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user