Change version of 'develop' branch to 'development-SNAPSHOT'

This commit is contained in:
Christian Basler 2016-09-13 07:36:28 +02:00
parent 83abce0f52
commit 7e201dd2cf
1 changed files with 5 additions and 1 deletions

View File

@ -37,7 +37,11 @@ class GitFlowVersion implements Plugin<Project> {
if (project.ext.isRelease) {
return getTag(project)
} else {
return getBranch(project).replaceAll("/", "-") + "-SNAPSHOT"
def branch = getBranch(project)
if ("develop" == branch) {
return "development-SNAPSHOT"
}
return branch.replaceAll("/", "-") + "-SNAPSHOT"
}
}