From f80abdb50760e01595593a419a340ce2183b284c Mon Sep 17 00:00:00 2001 From: Karotte128 Date: Wed, 5 Feb 2025 16:24:32 +0100 Subject: [PATCH] fix build --- build.gradle | 10 +++++++--- .../META-INF/neoforge.mods.toml | 0 2 files changed, 7 insertions(+), 3 deletions(-) rename src/main/{resources => templates}/META-INF/neoforge.mods.toml (100%) diff --git a/build.gradle b/build.gradle index 7aaa721..5025933 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { id 'net.neoforged.moddev' version '2.0.77' } -version = "${minecraft_version}-${mod_version}" +version = mod_version group = mod_group_id repositories { @@ -13,7 +13,7 @@ repositories { } base { - archivesName = archive_base_name + archivesName = mod_id } java.toolchain.languageVersion = JavaLanguageVersion.of(21) @@ -131,7 +131,11 @@ var generateModMetadata = tasks.register("generateModMetadata", ProcessResources mod_license : mod_license, mod_version : mod_version, mod_authors : mod_authors, - mod_description : mod_description] + mod_description : mod_description, + mod_issue_tracker_url : mod_issue_tracker_url, + mod_display_url : mod_display_url, + cctweaked_version_range: cctweaked_version_range, + morered_version_range : morered_version_range] inputs.properties replaceProperties expand replaceProperties from "src/main/templates" diff --git a/src/main/resources/META-INF/neoforge.mods.toml b/src/main/templates/META-INF/neoforge.mods.toml similarity index 100% rename from src/main/resources/META-INF/neoforge.mods.toml rename to src/main/templates/META-INF/neoforge.mods.toml