added build number to version

This commit is contained in:
Ell 2023-07-08 11:02:20 +02:00
parent edb7e9b8b7
commit 0e7c9cb3f7

View file

@ -9,6 +9,10 @@ plugins {
jarJar.enable()
version = mod_version
if (System.getenv('BUILD_NUMBER') != null) {
version += "." + System.getenv('BUILD_NUMBER')
}
group = mod_group_id
base {
@ -171,7 +175,7 @@ tasks.named('processResources', ProcessResources).configure {
minecraft_version : minecraft_version, minecraft_version_range: minecraft_version_range,
forge_version : forge_version, forge_version_range: forge_version_range,
loader_version_range: loader_version_range,
mod_id : mod_id, mod_name: mod_name, mod_license: mod_license, mod_version: mod_version,
mod_id : mod_id, mod_name: mod_name, mod_license: mod_license, mod_version: version,
mod_authors : mod_authors, mod_description: mod_description,
]
inputs.properties replaceProperties