Skip to content

How to customize the version sorting rules of dependency #2931

@zhaobingfeng

Description

@zhaobingfeng

Our company has a lot of internal use of the library, the version format is like "deug1.0.2" and "release1.0.0", the number is the actual version number, prefix that developed version or official version.
When a project relies on a library of "debug1.0.2" and "release1.0.0", the last effect is "release1.0.0" instead of the "debug1.0.2" we want because the Gradle default collation is similar to the letter order.
We did not think there was a problem when we defined the version format. Can we customize the version collation? To find the latest version that meets our requirements. Otherwise we can only let all the libraries start using the new version format.

ResolutionStrategy can not meet my requirements because it requires a change in the library version to change this configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions