TomatenMusic3/build.gradle.kts
tueem 9aae9cd77b
All checks were successful
github-mirror / push-github (push) Successful in 4s
Build / Gradle-Build (push) Successful in 23s
Test / Gradle-Test (push) Successful in 13s
add Project settings and artifact naming
2025-02-08 16:51:21 +01:00

16 lines
492 B
Plaintext

import java.io.ByteArrayOutputStream
allprojects {
group = "net.tomatentum.tomatenmusic3"
version = "1.0.0-RC1" + (if (!project.hasProperty("release")) ("-" + getGitHash()) else "")
description = "A simple Discord Music Bot written in Java with Javacord"
}
fun getGitHash(): String {
val output = ByteArrayOutputStream()
project.exec {
commandLine("git", "rev-parse", "--short", "HEAD")
standardOutput = output
}
return output.toString().trim()
}