mam-dev / ono-maven-shared

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

Implement BuildNumberVersionPolicy for release:prepare #3

Closed mfriedenhagen closed 9 years ago

mfriedenhagen commented 9 years ago

As a project I want to preserve the current development version (X-SNAPSHOT or X.Y-SNAPSHOT) and automatically set the MINOR or MICRO version only to the environment variable BUILD_NUMBER. So

Given my development version is 1-SNAPSHOT and the BUILD_NUMBER is 5 When I call release:prepare using BuildNumberVersionPolicy Then my release version is 1.5 and my development version is still 1-SNAPSHOT.

Given my development version is 1-SNAPSHOT and the TRAVIS_BUILD_NUMBER is 5 When I call release:prepare using BuildNumberVersionPolicy and the pom property buildnumber-version-policy-identifier is set to TRAVIS_BUILD_NUMBER Then my release version is 1.5 and my development version is still 1-SNAPSHOT.

Given my development version is 1.2-SNAPSHOT and the BUILD_NUMBER is 5 When I call release:prepare using BuildNumberVersionPolicy Then my release version is 1.2.5 and my development version is still 1.2-SNAPSHOT.

mfriedenhagen commented 9 years ago

Implemented with 98a3abb0c13a7ae0419a5ce31e3eece63c231ffa,