Skip to content

Commit

Permalink
chore: 🔧 Fixing publish
Browse files Browse the repository at this point in the history
  • Loading branch information
P3pp3rF1y committed Apr 2, 2024
1 parent 3f57983 commit 7c4951f
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand All @@ -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 ""
}
Expand Down

0 comments on commit 7c4951f

Please sign in to comment.