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
612 stars 28 forks source link

allowDependency with dependencyProvider does not use attributes to resolve actual dependency #317

Open hfhbd opened 2 months ago

hfhbd commented 2 months ago

We map the dependency in dependencyProvider directly to its gav, but with Kotlin MPP, the gav can change to eg g:a-jvm:v resulting into failing check because g:a-jvm:v is not allowed, but g:a:v is.

=> Don't map the gav in the extension but during configuration when we access it with the actual attributes from the configuration.