From 79222e8a5d8d6d5355bff64d5208091d426ec092 Mon Sep 17 00:00:00 2001 From: The Panda Oliver Date: Sun, 30 Jun 2024 13:24:22 +0200 Subject: [PATCH] Add displayName to publishOptions in build.gradle The commit adds a displayName property to the publishOptions for each of the fabric, forge, and neoForge projects in the build.gradle file. This displayName includes the root project's mod version and supported version string. It provides a clearer and more descriptive name for each project. --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index 12ec1e6..447abe2 100644 --- a/build.gradle +++ b/build.gradle @@ -126,16 +126,19 @@ publishMods { def fabricOptions = publishOptions { file = project(":fabric").remapJar.archiveFile modLoaders.add("fabric") + displayName = "[Fabric ${rootProject.mod_version}] ${supported_version_str}" } def forgeOptions = publishOptions { file = project(":forge").remapJar.archiveFile modLoaders.add("forge") + displayName = "[Forge ${rootProject.mod_version}] ${supported_version_str}" } def neoForgeOptions = publishOptions { file = project(":neoforge").remapJar.archiveFile modLoaders.add("neoforge") + displayName = "[NeoForge ${rootProject.mod_version}] ${supported_version_str}" } if (findProject(":fabric") && is_fabric_publishing_enabled) { @@ -193,6 +196,8 @@ publishMods { modLoaders.addAll("fabric", "forge", "neoforge") file = project(":common").remapJar.archiveFile + displayName = "Version ${rootProject.mod_version} mc${supported_version_str}" + if (findProject(":fabric")) additionalFiles.from(project(":fabric").remapJar.archiveFile) if (findProject(":forge"))