From a926067f57ca84d6609a3a393384696aa229a4c4 Mon Sep 17 00:00:00 2001 From: secret_online Date: Fri, 3 Jan 2025 20:06:09 +1300 Subject: [PATCH] Fix version number not being replaced in fabric.mod.json --- CHANGELOG.md | 4 ++++ build.gradle | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea4b89c..537a459 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,10 @@ The versioning scheme is listed in the README. ## Unreleased - DATE +### Fixed + +- Fixed version number included in mod. + ## v2.0.0 - 2024-01-03 ### Added diff --git a/build.gradle b/build.gradle index e877826..37d4360 100644 --- a/build.gradle +++ b/build.gradle @@ -32,7 +32,7 @@ loom { mods { "accessible-step" { - sourceSet sourceSets.main + // sourceSet sourceSets.main sourceSet sourceSets.client } } @@ -58,6 +58,14 @@ processResources { } } +processClientResources { + inputs.property "version", project.version + + filesMatching("fabric.mod.json") { + expand "version": project.version + } +} + tasks.withType(JavaCompile).configureEach { it.options.release = project.java_version as Integer }