Skip to content

Better support for meaningful SemVer-compliant versions #202

Open
@NthPortal

Description

@NthPortal

Following on from #93, I think it would be valuable to have the option (even if it is not the default) to produce SemVer-compliant versions. Some thoughts on how to do that:

  • a dynverStrictSemVer Boolean setting that defaults to false
  • for the base version, use the previous version with the patch number incremented by 1
    • since this will only be done if dynverStrictSemVer is set, we can require that the previous version is SemVer compliant
    • stretch goal to have a setting to customise which part of the version gets incremented?
  • for the pre-release portion, use dynver.<commits since last release>
    • doesn't have to be dynver, but it would be nice to have some non-numeric string that makes it easy to create other custom pre-releases with higher or lower precedence
  • for the metadata portion, use <commit hash prefix>.SNAPSHOT (or something similar that is valid for sonatype/maven)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions