Change version of 'develop' branch to 'development-SNAPSHOT'
This commit is contained in:
parent
83abce0f52
commit
7e201dd2cf
@ -37,7 +37,11 @@ class GitFlowVersion implements Plugin<Project> {
|
|||||||
if (project.ext.isRelease) {
|
if (project.ext.isRelease) {
|
||||||
return getTag(project)
|
return getTag(project)
|
||||||
} else {
|
} else {
|
||||||
return getBranch(project).replaceAll("/", "-") + "-SNAPSHOT"
|
def branch = getBranch(project)
|
||||||
|
if ("develop" == branch) {
|
||||||
|
return "development-SNAPSHOT"
|
||||||
|
}
|
||||||
|
return branch.replaceAll("/", "-") + "-SNAPSHOT"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user