axion-release-plugin icon indicating copy to clipboard operation
axion-release-plugin copied to clipboard

forceSnapshot results in wrong version number for initial version

Open cliffred opened this issue 7 years ago • 1 comments

Given a project that has never been released yet (no release tags), using the Axion defaults, the following happens:

> gradlew currentVersion
Project version: 0.1.0-SNAPSHOT
> gradlew currentVersion -Prelease.forceSnapshot
Project version: 0.1.1-SNAPSHOT

After the first release everything is fine.

cliffred avatar Nov 22 '18 13:11 cliffred

Force snapshot strikes again :) So many corner cases. I will take a look.

adamdubiel avatar Nov 22 '18 14:11 adamdubiel