allegro / allegro/axion-release-plugin
currentVersion not working [1.10.3 regression]
- Dominant language
- Groovy
- Stars
- 641
- Forks
- 165
- Avg merge
- 49m
- Merged PRs (30d)
- 9
Description
When upgrading past 1.10.2 'currentVersion' fails to determine the correct version from the tags, as shown below. Issue exists for 1.11.0 and 1.12.0 as well, introduced in 1.10.3.
1.10.2:
```
$ git tag
release/0.1.1-alpha
release/1.7.5
release/1.7.5-alpha
$ ./gradlew cV
> Configure project :
> Task :currentVersion
Property 'versionConfig' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.5/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Project version: 1.7.5
```
1.10.3: (changing plugin on same project - no other changes)
```
$ git tag
release/0.1.1-alpha
release/1.7.5
release/1.7.5-alpha
$ ./gradlew cV
> Configure project :
> Task :currentVersion
Property 'versionConfig' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.5/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Project version: 0.1.0-SNAPSHOT
```
Configuration:
```
project.version = scmVersion.version
project.scmVersion {
localOnly = true
tag {
prefix = 'release'
versionSeparator = '/'
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.