Skip to content

Commit

Permalink
tweaking build number process
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Nov 6, 2014
1 parent 6f2b391 commit 6300d1c
Showing 1 changed file with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@ class ProjectVersionCounter {
this.isRelease = isRelease
}

@Override
String toString() {
String fullVersion = "$major.$minor"
if (build) {
fullVersion += ".$build"
} else {
fullVersion += "-SNAPSHOT"
}
fullVersion
}

def getNextVersion() {
def currentVersion = "git describe --tags".execute().text
if (currentVersion.isEmpty()) {
Expand All @@ -33,7 +22,8 @@ class ProjectVersionCounter {
}

def tagNextVersion() {
println "git tag -a $nextVersion -m'release tag'".execute().text
println "git push origin $nextVersion".execute().text
println "Creating a tag in git for $nextVersion"
"git tag -a v$nextVersion -m'release tag'".execute().text
"git push origin --tags".execute().text
}
}

0 comments on commit 6300d1c

Please sign in to comment.