I was just bit by a difference between Gradle’s default version sorting (see StaticVersionComparator) and the Semantic Versioning specification. In particular this comes up during dependency resolution, especially if you have a dynamic version like
Here’s an example:
While I know Gradle is older than SemVer and Gradle’s logic is based on PHP’s version_compare (according to the comments), SemVer’s growing popularity over the past few years makes this an unfortunate difference. As someone who’s spending a good chunk of time developing tooling around SemVer, it would great for Gradle to easily support SemVer compliance for version sorting.
Any thoughts on how this could either be made configurable or (unlikely) if the behavior could be changed? I’d be willing to contribute if there’s a consensus on how this should work.