jgitver / jgitver/jgitver-maven-plugin

autoIncrementPatch not working

Open
#182 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

Autoincrementpatch set to true in the jgitver.config.xml does not seem to work for me, anything i'm doing wrong?

Jgitver maven plugin version 1.9.0

```

false
MAVEN
MAX
true
false
false
false
true
8
1
master,main
true

.m2

```

output from maven-antrun echo plugin:
```
[INFO] Executing tasks
[WARNING] [echo] used version: 0.0.2-fix_build-SNAPSHOT
[WARNING] [echo] version calculated: 0.0.2-fix_build-SNAPSHOT
[WARNING] [echo] dirty: true
[WARNING] [echo] head_committer_name: henkhofs
[WARNING] [echo] head_commit_datetime: Wed Mar 20 21:05:33 2024 +0100
[WARNING] [echo] git_sha1_full: 28e116e8d55083b6963f4150c934f74c42446949
[WARNING] [echo] git_sha1_8: 28e116e8
[WARNING] [echo] branch_name: fix-build
[WARNING] [echo] head_tags: 0.0.2
[WARNING] [echo] head_annotated_tags:
[WARNING] [echo] head_lightweight_tags: 0.0.2
[WARNING] [echo] base_tag: 0.0.2
[WARNING] [echo] all_tags: 0.0.2,0.0.1
[WARNING] [echo] all_annotated_tags:
[WARNING] [echo] all_lightweight_tags: 0.0.2,0.0.1
[WARNING] [echo] all_version_tags: 0.0.2,0.0.1
[WARNING] [echo] all_version_annotated_tags:
[WARNING] [echo] all_version_lightweight_tags: 0.0.2,0.0.1
[WARNING] [echo] currpatch: 2
[WARNING] [echo] nextpatch: 0.0.2
[WARNING] [echo] nextminor: 0.1.0
[WARNING] [echo] nextmajor: 0.0.2
```
Looks like the next_patch_version is not calculated correctly, anything i'm missing or did I find a bug?

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.