-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle sonar plugin looking in the wrong directory #421
Comments
same problem here additionally could not override it with config GRADLE_JSON_REPORT_PATH it also looks like there is typo/camelcase problem: licenseCheck.gradle-json-report-path vs licensecheck.gradle-json-report-path using standalone sonarqube runner in docker container but sonar is always try to find a file in: .scannerwork/build/reports/dependency-license/license-details.json SOLVED by: adding ../ in front of my licenseCheck.gradle-json-report-path path definition. i think this is because File licenseDetailsJsonFile = context |
Same problem here. |
there are two optons:
|
That's great. Thanks a lot @derhecht . |
When I run the gradle sonar plugin, the GradleDependencyScanner is using the context path to look for the license-details.json file:
sonarqube-licensecheck/src/main/java/at/porscheinformatik/sonarqube/licensecheck/gradle/GradleDependencyScanner.java
Line 51 in 6b04f45
This ends up looking in a directory under my gradle project's
build/sonar/<gradle-project-name>/build/reports/dependency-license/license-details.json
. I tried to configure my JK1 plugin to output to that directory, but it looks like the gradle sonar task cleans the directory prior to running the analylsis.I'll note that I have many gradle subprojects and I am running the sonar task on the root project with the same configuration identified in the
REAMD.md
.The text was updated successfully, but these errors were encountered: