From ccb2af05e927933d23e557d634557db200f06646 Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Mon, 1 Jul 2024 01:59:40 +0200 Subject: [PATCH] Instead of relying on a global placeholder, bake the version into the neoforge.mods.toml --- projects/neoforge/build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/projects/neoforge/build.gradle b/projects/neoforge/build.gradle index eec6628f09..a93c5c58ac 100644 --- a/projects/neoforge/build.gradle +++ b/projects/neoforge/build.gradle @@ -429,6 +429,17 @@ dependencies { } } +processResources { + inputs.property("version", project.version) + filesMatching("META-INF/neoforge.mods.toml") { + expand([ + "global": [ + "neoForgeVersion": project.version + ] + ]) + } +} + afterEvaluate { artifacts { modDevBundle(userdevJar) {