Skip to content

Commit

Permalink
Fixes / characters in branch name making Maven uploads fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeryn99 committed Dec 19, 2023
1 parent 99b17b2 commit a50115c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ def gitHash = { ->
def gitBranch() {
def branch = ""
def proc = "git rev-parse --abbrev-ref HEAD".execute()
proc.in.eachLine { line -> branch = line }
proc.in.eachLine { line -> branch = line.replace('/', '~') }
proc.err.eachLine { line -> println line }
proc.waitFor()
branch
}


allprojects {
apply plugin: "java"
apply plugin: "architectury-plugin"
Expand Down

0 comments on commit a50115c

Please sign in to comment.