From 61801345b4d5b4158ef2932c94ebeed8431c61e8 Mon Sep 17 00:00:00 2001 From: isXander Date: Wed, 26 Jul 2023 11:35:21 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20importing=20project=20with?= =?UTF-8?q?out=20publishing=20credentials?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 81bbee2..06d39ee 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -194,6 +194,10 @@ publishMods { requires { projectId.set("1eAoo2KR") /* yacl */ } optional { projectId.set("mOgUt4GM") /* modmenu */ } } + + tasks.getByName("publishModrinth") { + dependsOn("optimizeOutputsOfRemapJar") + } } val curseforgeId: String by project @@ -207,6 +211,10 @@ publishMods { requires { slug.set("yacl") } optional { slug.set("modmenu") } } + + tasks.getByName("publishCurseforge") { + dependsOn("optimizeOutputsOfRemapJar") + } } val githubProject: String by project @@ -216,6 +224,10 @@ publishMods { accessToken.set(findProperty("github.token")?.toString()) commitish.set(grgit.branch.current().name) } + + tasks.getByName("publishGithub") { + dependsOn("optimizeOutputsOfRemapJar") + } } } @@ -252,12 +264,4 @@ publishing { tasks.getByName("generateMetadataFileForModPublication") { dependsOn("optimizeOutputsOfRemapJar") } -tasks.getByName("publishCurseforge") { - dependsOn("optimizeOutputsOfRemapJar") -} -tasks.getByName("publishModrinth") { - dependsOn("optimizeOutputsOfRemapJar") -} -tasks.getByName("publishGithub") { - dependsOn("optimizeOutputsOfRemapJar") -} +