allegro / allegro/axion-release-plugin
Tagging with the highest version does NOT work as expected even after useHighestVersion = true is configured
- Lingua principale
- Groovy
- Stelle
- 641
- Fork
- 165
- Merge medio
- 49m
- PR unite (30g)
- 9
Descrizione
Hi All,
Could you please have a look and advise what may have been set up in wrong way in the following Axion plugin configuration as the expectation I'd had was the plugin to traverse the entire Git repo tree when working out the current position for a given "prefix" value?
The promise from the docs presumes that "
_**Tag with the highest version
Second mode is searching for highest version visible in the git tree's history. This means that all commits from HEAD till first commit will be analysed.**_" (https://axion-release-plugin.readthedocs.io/en/latest/configuration/version/#tag-with-the-highest-version)
**Repo state is similar to the example from docs:**
[T1]
~|
| ~~ |
[] ~~ [T2]
| ~~ ~ |
[**C**] ~~~[]
**Config applied:**
scmVersion {
useHighestVersion = true
checks {
uncommittedChanges.set(false)
}
tag {
prefix.set(project.name.concat('-'))
}
repository {
directory.set(project.rootProject.layout.getProjectDirectory().toString())
pushTagsOnly.set(true)
}
}
**Expected result of the "currentVersion" task:**
Project version: {T2 + increment}-SNAPSHOT
**Actual result of the "currentVersion" task:**
Project version: {T1 + increment}-SNAPSHOT
The implication of this issue is that the current position value becomes dependent on which branch the "currentVersion" task is run from as well as failures in releasing new artifacts since this may lead to the new version generated by plugin clashing with what already tagged on other branches' commits.
Thanks.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.