Skip to content

jgitver does not calculate release version correctly anymore #178

@merikan

Description

@merikan

see jgitver/jgitver#155

Tried to build a release the other day and realized that jgitver does not calculate the correct release version with annotated tag, it is calculated as snapshot. I have used jgitver in my projects since 2017 and it has worked flawlessly all the time.

Current version(s)

jgitver-maven-plugin v1.9.0
maven-wrapper v3.2.0
maven v3.9.4

git 2.42.0
openjdk 17.0.8.1 2023-08-24

I checked out the master branch with the latest release (2.0.0) from October 2022. At that time everything worked perfectly, but printing the version now, it is calculated as a snapshot.

master branch with latest release 2.0.0 from October 2022

jgitver-maven-plugin v1.9.0
maven-wrapper v3.1.1
maven v3.8.5

git 2.42.0
openjdk 17.0.8.1 2023-08-24

It seems like some external dependency (git,java,etc) has changed and is affecting jgitver but I can't remember which versions I was using at the time I built the latest release.

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