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 "" }