Skip to content

Commit

Permalink
update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersubudhi committed Jan 20, 2025
1 parent d6bc890 commit d650708
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -301,16 +301,9 @@ jacoco {
}

static def getVersion() {
def exactVersion = ""
def result = ""

def gitDescribeResponse = 'git describe --tags --exact-match'.execute()
ignoreExitValue true

if (execResult.getExitValue() == 0){
exactVersion = gitDescribeResponse.text.trim()
}
def exactVersion = 'git describe --tags'.execute().text.trim()

def result = ""
if (exactVersion) {
result = exactVersion
} else {
Expand Down

0 comments on commit d650708

Please sign in to comment.