jgitver / jgitver/jgitver-maven-plugin

jgitver does not calculate release version correctly anymore

Open
#178 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Groovy
Stars
166
Forks
42
PR merge metrics
No merged PRs in 30d

Description

see https://github.com/jgitver/jgitver/issues/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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.