Update build

This commit is contained in:
Janne Valkealahti
2021-07-04 16:20:37 +01:00
parent cbefb1e187
commit ec90f84898

View File

@@ -740,8 +740,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'
if (currentVersion.indexOf('.BUILD-SNAPSHOT') > 0) {
def nextVersion = currentVersion - '.BUILD-SNAPSHOT'
properties.setProperty('version', nextVersion)
properties.store(file.newWriter(), null)
} else {