Skip to content

Allow Sonatype Nexus version badge to post filter versions received from Nexus #11742

@reda-alaoui

Description

@reda-alaoui

📋 Description

We have an internal Sonatype Nexus repository. We have a specific suffix .preview identifying versions which are not final. We have no specific suffix for final versions:

  • 1.preview is not a final version
  • 1 is a final version

We want Sonatype Nexus version badges to show up only the latest final version. Sonatype Nexus APIs do not allow to pass a version regex to ask for "all versions not ending with .preview".

Could we add a filter attribute to sonatype-nexus version badges that would work the same way as the one supported by maven-central-version? From https://shields.cosium.dev/badges/maven-central-version :

The filter param can be used to apply a filter to the project's versions before selecting the latest from the list. Two constructs are available: * is a wildcard matching zero or more characters, and if the pattern starts with a !, the whole pattern is negated.

Example: *beta

This filter would be applied to the list of versions returned by the Sonatype Nexus API.

Metadata

Metadata

Assignees

Labels

service-badgeNew or updated service badge

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