jaredsburrows / gradle-license-plugin

Gradle plugin that provides a task to generate a HTML license report of your project.
https://central.sonatype.com/artifact/com.jaredsburrows/gradle-license-plugin
Apache License 2.0
406 stars 65 forks source link

Make sure dependencies are sorted deterministically #496

Closed francescocervone closed 4 months ago

francescocervone commented 4 months ago

Fixes https://github.com/jaredsburrows/gradle-license-plugin/issues/491

In some rare cases, the package name in the POM is the same for multiple dependencies, and for some reason those kind of dependencies are sorted non-deterministically.

This PR should stabilize the order of the dependencies by using the dependency id (group:module:version) as fallback, which is supposed to be universally unique.

jaredsburrows commented 4 months ago

Thanks!