我有一个具有以下结构的多项目:
:very:bestappever
:bestappever-distrib
SonarQubePlugin提供
:sonarqube
09:35:05.139 INFO - Load global repositories
09:35:05.252 INFO - Load global repositories (done) | time=114ms
09:35:05.254 INFO - Server id: 20160428045618
09:35:05.256 INFO - User cache: C:\Users\tk09\.sonar\cache
09:35:05.265 INFO - Install plugins
09:35:05.401 INFO - Install JDBC driver
09:35:05.414 INFO - Create JDBC datasource for jdbc:mysql://10.48.213.38:3306/sonar
09:35:06.456 INFO - Initializing Hibernate
:sonarqube FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':sonarqube'.
> The base directory of the module ':very:bestappever' does not exist: C:\Workarea\verybestappever\very\:very:bestappever
您可能会注意到,项目':very:bestappever'的完整路径插入了错误的位置。
这可能与https://jira.sonarsource.com/browse/SONARGRADL-12有关,通过将:bestappever项目移至:very:bestappever,我采用了最佳示例。您可以在https://github.com/ThiporKong/sonarqube-gradle-issue上找到此示例。
我想念什么吗?是否有任何可用于深度嵌套的gradle多项目的配置选项?我尝试了Sonarqube how to configure gradle sub-projects correctly?的建议,但无济于事。
感谢致敬,
蒂珀尔
最佳答案
SonarQube用户组也报告了问题。创建了票证(https://jira.sonarsource.com/browse/SONARGRADL-14),并在Gradle插件门户上部署了一个错误修正版本2.0.1。
关于gradle - sonarqube-gradle-plugin:为两个级别的子项目派生了错误的基本目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36908868/