Skip to content

Maven plugin generates semver-incompatible versions #186

@fjakop

Description

@fjakop

We're using jgitver-maven-plugin version 1.9.0 and no specific configuration.

When we generate a version on a branch named story/IT-4434/IT-4551-frontend and the nearest lightweight tag being v35.0.0 the generated version is 35.0.0-story_it_4434_it_4551_frontend-SNAPSHOT.

According to https://semver.org/#spec-item-9 the underscore is not an allowed character in the prerelease identifier.

This behaviour causes a following maven goal (org.revapi:revapi-maven-plugin:0.15.1:check) to fail since a checking against the semver spec is done.

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