3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-25 02:20:07 +01:00

allow input of build number

Dieser Commit ist enthalten in:
dordsor21 2019-04-22 15:11:43 +01:00
Ursprung 43fec813b8
Commit 03f3b09ca9

Datei anzeigen

@ -47,11 +47,15 @@ ext {
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;
index = -2109; // Offset to match CI if (project.hasProperty('buildnumber')) {
for (; parents != null && !parents.isEmpty(); index++) { buildNumber = "$buildnumber"
parents = git.getResolve().toCommit(parents.get(0)).getParentIds() } else {
index = -2109; // Offset to match CI
for (; parents != null && !parents.isEmpty(); index++) {
parents = git.getResolve().toCommit(parents.get(0)).getParentIds()
}
buildNumber = "${index}"
} }
buildNumber = "${index}"
} }
if ( project.hasProperty("lzNoVersion") ) { // gradle build -PlzNoVersion if ( project.hasProperty("lzNoVersion") ) { // gradle build -PlzNoVersion