Use commit hash for beta builds

This commit is contained in:
= 2024-12-14 23:53:01 +02:00
parent c3f5a69bca
commit 681c0b1d1f
2 changed files with 2 additions and 1 deletions

View file

@ -22,6 +22,7 @@ fun getVersionMeta(includeHash: Boolean): String {
return "$commitHash-SNAPSHOT" return "$commitHash-SNAPSHOT"
} }
version = "$fullVersion${getVersionMeta(true)}" version = "$fullVersion${getVersionMeta(true)}"
ext["versionBeta"] = getVersionMeta(true)
ext["versionNoHash"] = "$fullVersion${getVersionMeta(false)}" ext["versionNoHash"] = "$fullVersion${getVersionMeta(false)}"
tasks { tasks {

View file

@ -33,7 +33,7 @@ tasks {
processResources { processResources {
inputs.property("version", project.version) inputs.property("version", project.version)
filesMatching(listOf("plugin.yml", "velocity-plugin.json")) { filesMatching(listOf("plugin.yml", "velocity-plugin.json")) {
expand("version" to project.version) expand("versionBeta" to project.version)
} }
} }