Update build
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user