allegro / allegro/axion-release-plugin

currentVersion not working [1.10.3 regression]

Aberta
#341 3 comentários 1 reação 0 responsáveis Ver no GitHub
Linguagem predominante
Groovy
Estrelas
641
Forks
165
Merge médio
49min
PRs com merge (30d)
9

Descrição

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 = '/'
}
}
```

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.