Skip to content

Commit

Permalink
Hardcode snapshot version name
Browse files Browse the repository at this point in the history
  • Loading branch information
DzmitryFomchyn committed Sep 20, 2023
1 parent 867240d commit db1d2e7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions gradle/artifact-settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ ext {
}

def getVersionName() {
if (project.hasProperty('VERSION_NAME')) {
return project.property('VERSION_NAME')
}
def prefix = project.ext.releaseTagPrefix
def cmd = ["git", "describe", "--tag", "--match", "$prefix*", "--abbrev=0"]
def version = cmd.execute().text
return project.ext.snapshot ? getSnapshotVersion(version) : getReleaseVersion(version)
// if (project.hasProperty('VERSION_NAME')) {
// return project.property('VERSION_NAME')
// }
// def prefix = project.ext.releaseTagPrefix
// def cmd = ["git", "describe", "--tag", "--match", "$prefix*", "--abbrev=0"]
// def version = cmd.execute().text
return "2.17.0-MAP-ANIMATION-TEST-1.0-SNAPSHOT"
}

def getReleaseVersion(String version) {
Expand Down

0 comments on commit db1d2e7

Please sign in to comment.