mam-dev / ono-maven-shared

1-and-1 :: FOSS Libraries useable by Apache Maven
Apache License 2.0
5 stars 2 forks source link

Fix version intialization (if no versions were previously deployed) #14

Closed chrisgahlert closed 6 years ago

chrisgahlert commented 6 years ago

When there are no versions deployed yet, the following happens:

currentVersion = "0"
versionInfo = 0
nextVersion = 1
currentSnapshot = 1-SNAPSHOT
versionPolicyResult = 1

However, I would expect that versionPolicyResult is 1.0. The PR should fix the problem.

If I can find some time, I will add some tests! :)

Kind regards

mfriedenhagen commented 6 years ago

Please rebase to current master, Travis should run again.

chrisgahlert commented 6 years ago

Rebase done! Kind regards ;)

mfriedenhagen commented 6 years ago

@chrisgahlert, thanks