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 d650708 commit e6fa1c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ static def getVersion() {
} else {
def tag = 'git describe --tags --abbrev=0'.execute().text.trim()
if (!tag) {
throw new GradleException("No tags found")
def commitHash = 'git rev-parse --short HEAD'.execute().text.trim()
return commitHash
// throw new GradleException("No tags found")
}
def m = tag =~ /\.(\d+)$/
def match = m[0][1]
Expand Down

0 comments on commit e6fa1c2

Please sign in to comment.