vivin / gradle-semantic-build-versioning

Gradle plugin to generate version-numbers and tags using semantic versioning
MIT License
86 stars 32 forks source link

promotion of pre-release versions does not remove snapshotSuffix #96

Closed rustycl0ck closed 6 years ago

rustycl0ck commented 6 years ago

When a pre-release version (like 1.2.2-alpha.4-SNAPSHOT for example) is promoted to release, it is versioned as 1.2.2-SNAPSHOT instead of the expected version 1.2.2-alpha.4

vivin commented 6 years ago

This is working as expected (see here). I know it's a little confusing that you have promoteToRelease and release. This is because we also account for the Java notion of release vs. snapshot builds. promoteToRelease only promotes a semver pre-release version to release. If you haven't supplied the release property, it will not get rid of the snapshot suffix. So to do what you want, you will need to include both: -PpromoteToRelease -Prelease.