问题
Background:
We have two subprojects each with many sub-sub-projects. The root project is an empty parent. We have one project that is strictly for the flyway plugin. Often times names do not match directories. For perspective, settings.gradle is 219 lines and roughly half of those are projects.
So I'm getting this error:
Caused by: java.lang.IllegalStateException: The base directory of the module ':commons:sitewidget' does not exist: /dev/abc/commons/:commons:sitewidget
Here is the question: How did the SonarQube Gradle plugin build that path? By this, I mean /dev/abc/commons/:commons:sitewidget
which doesn't exist. The actual path is /dev/abc/commons/sitewidget
.
If I can find a way to force it to build the path correctly, I may be able to work around other issues.
回答1:
This has been fixed by the Sonar Source Team with https://jira.sonarsource.com/browse/SONARGRADL-14 and a bugfix release 2.0.1 was deployed on Gradle plugin portal.
来源:https://stackoverflow.com/questions/36896336/why-is-gradle-sonar-jacoco-looking-for-dir-and-also-project