chrisbanes / gradle-mvn-push

Helper to upload Gradle Android Artifacts to Maven repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build SNAPSHOT version ,Is the logic wrong?

zhangwenhao2013 opened this issue · comments

def isReleaseBuild() { return VERSION_NAME.contains("SNAPSHOT") == false }

def isReleaseBuild() { return VERSION_NAME.contains("SNAPSHOT") }

No. If the version name has a "SNAPSHOT" suffix it is, by definition, not a "release" build.
def isReleaseBuild() { return VERSION_NAME.contains("SNAPSHOT") == false }
determines whether SNAPSHOT is absent from the version name. The logic is correct.