cashapp / licensee

Gradle plugin which validates the licenses of your dependency graph match what you expect
https://cashapp.github.io/licensee/docs/1.x/
Apache License 2.0
626 stars 29 forks source link

Extract SPDX license JSON parsing to its own class #33

Closed JakeWharton closed 3 years ago

JakeWharton commented 3 years ago

This allows testing in isolation. And as a result of testing, fix a bug where we were not allowing the 'https' variant of license URLs.

This also changes the behavior around duplicated license URLs (#28) to prefer the shortest identifier for now. At the very least this is probably the one you want, and it makes the behavior deterministic rather than relying on the JSON order.