From 83959d5c26b61cf4e63471cce588151a4dc49e41 Mon Sep 17 00:00:00 2001 From: Luke Bemish Date: Tue, 9 Apr 2024 02:59:13 -0500 Subject: [PATCH] Remove project from resource processing template replacement (#45) --- build.gradle | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 462b825..62cb259 100644 --- a/build.gradle +++ b/build.gradle @@ -110,16 +110,22 @@ dependencies { // See https://docs.gradle.org/current/dsl/org.gradle.language.jvm.tasks.ProcessResources.html tasks.withType(ProcessResources).configureEach { var replaceProperties = [ - minecraft_version : minecraft_version, minecraft_version_range: minecraft_version_range, - neo_version : neo_version, neo_version_range: neo_version_range, - loader_version_range: loader_version_range, - mod_id : mod_id, mod_name: mod_name, mod_license: mod_license, mod_version: mod_version, - mod_authors : mod_authors, mod_description: mod_description, + minecraft_version : minecraft_version, + minecraft_version_range: minecraft_version_range, + neo_version : neo_version, + neo_version_range : neo_version_range, + loader_version_range : loader_version_range, + mod_id : mod_id, + mod_name : mod_name, + mod_license : mod_license, + mod_version : mod_version, + mod_authors : mod_authors, + mod_description : mod_description ] inputs.properties replaceProperties filesMatching(['META-INF/mods.toml']) { - expand replaceProperties + [project: project] + expand replaceProperties } }