Skip to content

Bug forcing tag naming strategy with prefix v #264

@bueno-felipe

Description

@bueno-felipe

From version 18.0.6 and so on the NearestVersionLocator only read tags that use v as prefix, as you can see in this commit:
7d369f6

https://github.com/nebula-plugins/nebula-release-plugin/blame/c3850c0a954fafce9064c94ad1c47a58f94381fd/src/main/groovy/nebula/plugin/release/git/command/GitReadCommand.groovy#L115

But the base plugin gradle-git allow users to extend the tagStrategy to define how the git tag will be created, through setting:

#build.gradle
release {
    tagStrategy {
       prefixNameWithV = false
    }
}

or

#build.gradle
release {
    tagStrategy {
       toTagString = { version -> "${version}" }
    }  
}

Shouldn't it to be consider as a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions