Oh, right, you mean the "qualifier". Here's what Better Builds with Maven<http://repo.exist.com/dist/maestro/1.7.0/BetterBuildsWithMaven.pdf>says,
With regard to ordering, the elements are considered in sequence to determine which is newer - first by major version, second - if the major versions were equal - by minor version, third by bug fix version, fourth by qualifier (using string comparison), and finally, by build number. A version that contains a qualifier is older than a version without a qualifier; for example, 1.2-beta is older than version 1.2. A version that also contains a build number is considered newer than a version without a build number; for example, 1.2-beta-1 is newer than 1.2-beta. But my point still stands, Buildr should drop the SNAPSHOT qualifier (and only SNAPSHOT) during a release. alex On Mon, Feb 9, 2009 at 4:36 PM, Assaf Arkin <[email protected]> wrote: > > > On Feb 9, 2009, at 4:16 PM, Alex Boisvert <[email protected]> wrote: > > Ugh? If beta is not a release but a pre-release, how do you pre-release >> a >> beta? >> > > Then maybe it's called something else, either way the fourth part is > constrained. > > > > > >> >> >> On Sun, Feb 8, 2009 at 10:43 PM, Assaf Arkin <[email protected]> wrote: >> >> On Fri, Feb 6, 2009 at 2:51 PM, Alex Boisvert <[email protected]> >>> wrote: >>> >>> The Maven conventions don't restrict the version to only numbers, so >>>> >>> yeah, >>> >>>> buildr should only strip a "-SNAPSHOT" suffix. >>>> >>> >>> >>> Actually it does: releases must end with numbers, pre-releases (rc, beta, >>> etc) with alphanumerics, and therefore 0 by virtue of being a release is >>> higher than beta2. OSGi uses alphanumerics on the fourth part, other >>> package managers have their own conventions. Buildr doesn't follow >>> anything >>> more complicated than numerical. >>> >>> Assaf >>> >>> >>> >>> >>>> >>>> alex >>>> >>>> >>>> On Fri, Feb 6, 2009 at 2:35 PM, Matthieu Riou <[email protected] >>>> >>>>> wrote: >>>>> >>>> >>>> Hi guys, >>>>> >>>>> The logic in release strips out any letter that comes after the last >>>>> >>>> ('.' >>> >>>> + >>>> >>>>> digit) in a project release number. So something like 1.2-beta will >>>>> actually >>>>> be released as 1.2. Sounds to me like a bug but I just wanted to check >>>>> before that it wasn't by design, an adoption of the 'no letter in >>>>> >>>> releases' >>>> >>>>> RubyGem doctrine. >>>>> >>>>> Given that the actual goal is only to strip an ending "-SNAPSHOT", the >>>>> >>>> fix >>>> >>>>> is pretty straightforward. >>>>> >>>>> Cheers, >>>>> Matthieu >>>>> >>>>> >>>> >>>
