1
0
mirror of https://github.com/GeyserMC/Rainbow.git synced 2025-12-19 14:59:16 +00:00

Add build number to version in FMJ

This commit is contained in:
Eclipse
2025-10-23 10:37:01 +00:00
parent e766f0564b
commit fba4aa31ab
2 changed files with 6 additions and 2 deletions

View File

@@ -8,6 +8,9 @@ group = properties["maven_group"]!! as String
val archivesBaseName = properties["archives_base_name"]!! as String
val targetJavaVersion = 21
val buildNumber = System.getenv()["BUILD_NUMBER"]?: "DEV"
val fmjVersion = "$version-$buildNumber"
base {
archivesName = archivesBaseName
}
@@ -42,7 +45,7 @@ dependencies {
tasks {
processResources {
inputs.property("version", version)
inputs.property("version", fmjVersion)
inputs.property("supported_versions", libs.versions.minecraft.supported.get())
inputs.property("loader_version", libs.versions.fabric.loader.get())
filteringCharset = "UTF-8"
@@ -50,7 +53,7 @@ tasks {
filesMatching("fabric.mod.json") {
expand(
mapOf(
"version" to version,
"version" to fmjVersion,
"supported_versions" to libs.versions.minecraft.supported.get(),
"loader_version" to libs.versions.fabric.loader.get()
)