1--- a/build-logic/src/main/kotlin/velocity-init-manifest.gradle.kts
2+++ b/build-logic/src/main/kotlin/velocity-init-manifest.gradle.kts
3@@ -8,29 +8,10 @@ interface Injected {
4 val execOps: ExecOperations
5 }
6
7-val currentShortRevision = ByteArrayOutputStream().use {
8- val execOps = objects.newInstance<Injected>().execOps
9- execOps.exec {
10- executable = "git"
11- args = listOf("rev-parse", "HEAD")
12- standardOutput = it
13- }
14- it.toString().trim().substring(0, 8)
15-}
16-
17 tasks.withType<Jar> {
18 manifest {
19 val buildNumber = System.getenv("BUILD_NUMBER")
20- val velocityHumanVersion: String =
21- if (project.version.toString().endsWith("-SNAPSHOT")) {
22- if (buildNumber == null) {
23- "${project.version} (git-$currentShortRevision)"
24- } else {
25- "${project.version} (git-$currentShortRevision-b$buildNumber)"
26- }
27- } else {
28- archiveVersion.get()
29- }
30+ val velocityHumanVersion = System.getenv("BUILD_VERSION");
31 attributes["Implementation-Version"] = velocityHumanVersion
32 }
33 }