From 7c4951fa777a5007d580714129797f69ae4dfd33 Mon Sep 17 00:00:00 2001 From: P3pp3rF1y Date: Tue, 2 Apr 2024 12:46:07 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=94=A7=20Fixing=20publish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/build.gradle b/build.gradle index fc37c2fb..03e4eb85 100755 --- a/build.gradle +++ b/build.gradle @@ -109,19 +109,6 @@ tasks.withType(ProcessResources).configureEach { } } -publishing { - publications { - register('mavenJava', MavenPublication) { - from components.java - } - } - repositories { - maven { - url "file://${project.projectDir}/repo" - } - } -} - tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' } @@ -146,8 +133,11 @@ static def getBuildNumber() { } static def getStable() { - if ((System.getenv("GITHUB_REF") == null || System.getenv("GITHUB_REF").endsWith("-dev"))) { + def githubRef = System.getenv("GITHUB_REF") + if ((githubRef == null || githubRef.endsWith("-dev"))) { return "-dev" + } else if (githubRef.contains("-")) { + return githubRef.substring(githubRef.indexOf("-")) } return "" }