Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Commit

Permalink
Fix gradle 5 not working
Browse files Browse the repository at this point in the history
  • Loading branch information
HyCraftHD committed Sep 8, 2019
1 parent 40bc896 commit c11c9cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git.methods
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def getBuildNumber() {
config.buildnumber = buildnumber
}

task setBuildNumber << {
task setBuildNumber {
doLast {
def mainBranch = execute("git rev-parse --abbrev-ref HEAD").trim()
def versionBranch = "versioning"
def patchFile = new File("patch")
Expand All @@ -56,6 +57,7 @@ task setBuildNumber << {
}

execute("git checkout ${mainBranch} -f")
}
}

def commit(files, message, branch) {
Expand Down

0 comments on commit c11c9cf

Please sign in to comment.