Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-09-08 20:43:04 +02:00
Try this for branch name
Dieser Commit ist enthalten in:
Ursprung
9bcd62937d
Commit
28dca21892
@ -81,10 +81,10 @@ configure<BlossomExtension> {
|
|||||||
val indra = the<IndraGitExtension>()
|
val indra = the<IndraGitExtension>()
|
||||||
|
|
||||||
val mainFile = "src/main/java/org/geysermc/geyser/GeyserImpl.java"
|
val mainFile = "src/main/java/org/geysermc/geyser/GeyserImpl.java"
|
||||||
val gitVersion = "git-${indra.branchName() ?: "DEV"}-${indra.commit()?.name?.substring(0, 7) ?: "0000000"}"
|
val gitVersion = "git-${indra.branch()?.name ?: "DEV"}-${indra.commit()?.name?.substring(0, 7) ?: "0000000"}"
|
||||||
|
|
||||||
replaceToken("\${version}", "${project.version} ($gitVersion)", mainFile)
|
replaceToken("\${version}", "${project.version} ($gitVersion)", mainFile)
|
||||||
replaceToken("\${gitVersion}", gitVersion, mainFile)
|
replaceToken("\${gitVersion}", gitVersion, mainFile)
|
||||||
replaceToken("\${buildNumber}", Integer.parseInt(System.getProperty("BUILD_NUMBER", "-1")), mainFile)
|
replaceToken("\${buildNumber}", Integer.parseInt(System.getProperty("BUILD_NUMBER", "-1")), mainFile)
|
||||||
replaceToken("\${branch}", indra.branchName() ?: "DEV", mainFile)
|
replaceToken("\${branch}", indra.branch()?.name ?: "DEV", mainFile)
|
||||||
}
|
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren