geforkt von Mirrors/FastAsyncWorldEdit
allow input of build number
Dieser Commit ist enthalten in:
Ursprung
43fec813b8
Commit
03f3b09ca9
@ -47,12 +47,16 @@ 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;
|
||||||
|
if (project.hasProperty('buildnumber')) {
|
||||||
|
buildNumber = "$buildnumber"
|
||||||
|
} else {
|
||||||
index = -2109; // Offset to match CI
|
index = -2109; // 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()
|
||||||
}
|
}
|
||||||
buildNumber = "${index}"
|
buildNumber = "${index}"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( project.hasProperty("lzNoVersion") ) { // gradle build -PlzNoVersion
|
if ( project.hasProperty("lzNoVersion") ) { // gradle build -PlzNoVersion
|
||||||
version = "unknown"
|
version = "unknown"
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren