From 02351c21685e208c317bc4cc5d400493fca6beee Mon Sep 17 00:00:00 2001 From: rxchard <40161763+rxchard@users.noreply.github.com> Date: Thu, 12 Dec 2024 00:15:22 +0100 Subject: [PATCH] ci: gradle stack overflow fix --- Publication/build.gradle.kts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Publication/build.gradle.kts b/Publication/build.gradle.kts index d53b801..0a988fb 100644 --- a/Publication/build.gradle.kts +++ b/Publication/build.gradle.kts @@ -11,20 +11,19 @@ var plugin = project(":Plugin") // com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar ext org.gradle.api.tasks.bundling.Jar var shadowJar = plugin.tasks.named("shadowJar") -var version = plugin.version as String -var channel = System.getenv("HANGAR_PUB_CHANNEL") - -if (channel == "Preview") { - version = version + "+" + System.getenv("HANGAR_SHORTY") +var gversion = plugin.version as String +var gchannel = System.getenv("HANGAR_PUB_CHANNEL") +if (gchannel == "Preview") { + gversion = gversion + "+" + System.getenv("HANGAR_SHORTY") } hangarPublish { publications.register("plugin") { apiKey.set(System.getenv("HANGAR_API_TOKEN")) id.set(System.getenv("HANGAR_ID")) - channel.set(channel) + channel.set(gchannel) changelog.set(System.getenv("HANGAR_PUB_CHANGELOG")) - version.set(version) + version.set(gversion) platforms { register(Platforms.PAPER) { jar.set(shadowJar.flatMap { it.archiveFile })