Use commit hash for beta builds
This commit is contained in:
parent
c3f5a69bca
commit
681c0b1d1f
2 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue