From 889134d846ed3bf6a7467d091b089aa903a6520b Mon Sep 17 00:00:00 2001 From: Michael Hillcox Date: Sun, 17 Dec 2023 23:02:21 +0000 Subject: [PATCH] fix: add neo publishing --- build.gradle | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 72486e9..678b9bb 100644 --- a/build.gradle +++ b/build.gradle @@ -86,16 +86,22 @@ publishMods { def fabricOptions = publishOptions { file = project.provider { project(":fabric").tasks.remapJar }.flatMap { it.archiveFile } - displayName = "${project.name} Fabric ${mod_version}+mc${minecraft_version}" + displayName = "[FABRIC][${minecraft_version}] ${project.name} ${mod_version}" modLoaders.add("fabric") } def forgeOptions = publishOptions { file = project.provider { project(":forge").tasks.remapJar }.flatMap { it.archiveFile } - displayName = "${project.name} Forge ${mod_version}+mc${minecraft_version}" + displayName = "[FORGE][${minecraft_version}] ${project.name} ${mod_version}" modLoaders.add("forge") } + def neoforgeOptions = publishOptions { + file = project.provider { project(":neoforge").tasks.remapJar }.flatMap { it.archiveFile } + displayName = "[NEOFORGE][${minecraft_version}] ${project.name} ${mod_version}" + modLoaders.add("neoforge") + } + def curseForgeOptions = curseforgeOptions { accessToken = providers.environmentVariable("CURSE_TOKEN") projectId = "${curseforge_id}" @@ -131,6 +137,16 @@ publishMods { } } + curseforge("curseforgeNeoforge") { + from(curseForgeOptions, neoforgeOptions) + requires { + slug = "cloth-config" + } + requires { + slug = "architectury-api" + } + } + if (providers.environmentVariable("MODRINTH_TOKEN").getOrNull() != null) { modrinth("modrinthFabric") { from(modrinthOptions, fabricOptions) @@ -155,5 +171,15 @@ publishMods { slug = "architectury-api" } } + + modrinth("modrinthNeoforge") { + from(modrinthOptions, neoforgeOptions) + requires { + slug = "cloth-config" + } + requires { + slug = "architectury-api" + } + } } }