Closed rustycl0ck closed 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
.
When a pre-release version (like
1.2.2-alpha.4-SNAPSHOT
for example) is promoted to release, it is versioned as1.2.2-SNAPSHOT
instead of the expected version1.2.2-alpha.4