diff --git a/build.gradle b/build.gradle index b51ae0a3..21f48e04 100644 --- a/build.gradle +++ b/build.gradle @@ -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 {