geforkt von Mirrors/Paper
Trim whitspace off of git hash (oops)
Dieser Commit ist enthalten in:
Ursprung
16030c824f
Commit
4c515198bb
@ -10,7 +10,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+++ b/build.gradle.kts
|
+++ b/build.gradle.kts
|
||||||
@@ -0,0 +0,0 @@ tasks.jar {
|
@@ -0,0 +0,0 @@ tasks.jar {
|
||||||
val git = Git(rootProject.layout.projectDirectory.path)
|
val git = Git(rootProject.layout.projectDirectory.path)
|
||||||
val gitHash = git("rev-parse", "--short=7", "HEAD").getText()
|
val gitHash = git("rev-parse", "--short=7", "HEAD").getText().trim()
|
||||||
val implementationVersion = System.getenv("BUILD_NUMBER") ?: "\"$gitHash\""
|
val implementationVersion = System.getenv("BUILD_NUMBER") ?: "\"$gitHash\""
|
||||||
+ val gitBranch = git("rev-parse", "--abbrev-ref", "HEAD").getText().trim() // Paper
|
+ val gitBranch = git("rev-parse", "--abbrev-ref", "HEAD").getText().trim() // Paper
|
||||||
attributes(
|
attributes(
|
||||||
|
@ -70,7 +70,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+
|
+
|
||||||
+ manifest {
|
+ manifest {
|
||||||
+ val git = Git(rootProject.layout.projectDirectory.path)
|
+ val git = Git(rootProject.layout.projectDirectory.path)
|
||||||
+ val gitHash = git("rev-parse", "--short=7", "HEAD").getText()
|
+ val gitHash = git("rev-parse", "--short=7", "HEAD").getText().trim()
|
||||||
+ val implementationVersion = System.getenv("BUILD_NUMBER") ?: "\"$gitHash\""
|
+ val implementationVersion = System.getenv("BUILD_NUMBER") ?: "\"$gitHash\""
|
||||||
+ attributes(
|
+ attributes(
|
||||||
+ "Main-Class" to "org.bukkit.craftbukkit.Main",
|
+ "Main-Class" to "org.bukkit.craftbukkit.Main",
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren