Closed serba closed 7 years ago
same issue here
Thanks for reporting this. I will have a look at this asap
The proposed solution seems worked out for me. Created a pull request #135
Thanks @ejohansson! I've merged the PR, and will release a new version shortly (ie. this week)
Running into this issue again when I have this line in my project
project.dependencies {
compile files("path/to/resources")
}
I'm on Gradle 4.10.
@imrimt to solve the problem you just need to change the compile to implementation
implementation(files('./src/main/resources/myjar.jar'))
We recently upgraded our project to gradle 3.4.1 and
downloadLicenses
started failing with the following exception:I noticed that
DefaultSelfResolvingDependency.java
hadgetSource
method in gradle 2.14 and it’s not there in gradle 3.4.1. It looks like that was changed in 3.3 (see https://github.com/gradle/gradle/commit/9e20cfed5d4ee5d516fa41b7198d17342f847559).Should
license-gradle-plugin
callFileCollectionDependency.files
or evenFileCollectionDependency.resolve
instead ofFileCollectionDependency.source
in LicenseResolver.groovy#L164 ?