license-gradle-plugin
license-gradle-plugin copied to clipboard
Excluding dependencies not working for gradle api and local groovy dependency
trafficstars
Some projects, for example projects of type Gradle Plugins , have a compile dependency saying
compile gradleApi() or compile localGroovy()
Obviously, dependencies generated due to these are not required for license identification so we have to exclude them using excludeDependencies. But if we try to excludeDependencies = [gradleApi(),localGroovy()] , it wont build.
Can someone suggest something on this ?
@harshild The problem is, is that gradleApi() and alike are methods on the DependencyHandler we might be able to re-use that for the dependency exclusion mechanism, but it is probably not very simple.