mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-04 19:45:59 +00:00
Upgrade build files
This commit is contained in:
parent
e1db27010c
commit
4d0bd8a3a3
3 changed files with 12 additions and 12 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue