From c024eb52baeff80804f4eb6e4d567bdfad30ff29 Mon Sep 17 00:00:00 2001 From: Chrys Chrysanthemum Date: Sat, 18 Jul 2026 22:24:39 +1000 Subject: [PATCH] build: Use global MOD_VERSION field for publishing to Forgejo. --- .../lgbt/greenhouse/config_extensions/gradle/Properties.kt | 1 + gamerules/xplat/build.gradle.kts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build_logic/src/main/kotlin/lgbt/greenhouse/config_extensions/gradle/Properties.kt b/build_logic/src/main/kotlin/lgbt/greenhouse/config_extensions/gradle/Properties.kt index 19549f4..de35ea4 100644 --- a/build_logic/src/main/kotlin/lgbt/greenhouse/config_extensions/gradle/Properties.kt +++ b/build_logic/src/main/kotlin/lgbt/greenhouse/config_extensions/gradle/Properties.kt @@ -1,6 +1,7 @@ package lgbt.greenhouse.config_extensions.gradle object Properties { + val MOD_VERSION = mapModVersion("0.1.1") val FRIENDLY_MINECRAFT_VERSION = mapMinecraftVersion("26.2.x") const val JAVA_VERSION = 25 diff --git a/gamerules/xplat/build.gradle.kts b/gamerules/xplat/build.gradle.kts index 4a61923..0b0d5e3 100644 --- a/gamerules/xplat/build.gradle.kts +++ b/gamerules/xplat/build.gradle.kts @@ -7,6 +7,7 @@ plugins { val props = project.ext["props"] as Properties.ModuleProperties +// TODO: Move me to a general publish module. publishMods { changelog = rootProject.file("CHANGELOG.md").readText() displayName = "v${props.version} (Minecraft ${Properties.FRIENDLY_MINECRAFT_VERSION})" @@ -20,7 +21,7 @@ publishMods { accessToken = providers.environmentVariable("FORGEJO_TOKEN") host(uri(Properties.FORGEJO_URL)) repository = Properties.FORGEJO_REPO - tagName = "${props.version}+${Properties.FRIENDLY_MINECRAFT_VERSION}" + tagName = "${Properties.MOD_VERSION}+${Properties.FRIENDLY_MINECRAFT_VERSION}" commitish = Properties.FORGEJO_COMMITISH } } -- 2.51.2