chrisbanes / gradle-mvn-push

Helper to upload Gradle Android Artifacts to Maven repositories
Apache License 2.0
1.05k stars 283 forks source link

build SNAPSHOT version ,Is the logic wrong? #59

Open zhangwenhao2013 opened 5 years ago

zhangwenhao2013 commented 5 years ago

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

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

gsprdev commented 4 years ago

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.