Update build

This commit is contained in:
Janne Valkealahti
2021-07-04 16:24:15 +01:00
parent ec90f84898
commit e8b2a2d645

View File

@@ -724,8 +724,8 @@ configure(rootProject) {
def file = new File('gradle.properties')
properties.load(file.newDataInputStream())
def currentVersion = properties.getProperty('version')
if (currentVersion.indexOf('-SNAPSHOT') > 0) {
def nextVersion = currentVersion - '-SNAPSHOT' + '-' + postfix
if (currentVersion.indexOf('.BUILD-SNAPSHOT') > 0) {
def nextVersion = currentVersion - '.BUILD-SNAPSHOT' + '-' + postfix
properties.setProperty('version', nextVersion)
properties.store(file.newWriter(), null)
} else {