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:
@@ -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()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user