11 lines
257 B
Groovy
11 lines
257 B
Groovy
ext.versionFile = "../version.txt"
|
|
ext.baseVersion = project.file(versionFile).text.trim()
|
|
|
|
version baseVersion
|
|
|
|
if(project.hasProperty("mavenRepository") && !project.hasProperty("finalRelease")) {
|
|
version += "-SNAPSHOT"
|
|
}
|
|
|
|
ext.openSuiteVersion = version
|