I seem to recall that it's already configurable, that someone else has been
here and done this.
On Mon, Jan 11, 2021 at 8:24 AM Dennis Lundberg <
[hidden email]>
wrote:
> Hi all,
>
> When using a CI environments that create a new SemVer-compliant version for
> every build. These could use a qualifier like "-build" together with the
> build number. Here is an example:
>
> 1.2.3-build417
>
> This signifies build number 417 of the not-yet-released version 1.2.3.
>
> The current behavior of maven-artifact is 1.2.3-build417 > 1.2.3.
>
> This is the opposite of what is expected for a SemVer version number. One
> way to solve this would be to add an alias for the qualifier "build" which
> should equal "snapshot". So when doing version comparisons 1.2.3-build417 <
> 1.2.3.
>
> I have a feeling though that this might wreck things for people that do not
> follow SemVer. What would be the best way to solve this? It would be great
> if a user can tell Maven to follow SemVer. I imagine creating a
> SemVer-compliant brother to ComparableVersion, in combination with making
> the version comparison class configurable in some way.
>
> --
> Dennis Lundberg
>