In Sonarqube 7.6, Multi-Module analysis properties removed, that means we cannot use “sonar.modules” in our sonar property files. So Is there any alternative proposal for this?
The content in the property file before Sonarqube 7.6
- our project folder
project |——folder1 |——src |——main |——test |——folder2 |——src |——main |——test |——folder3 |——folder4 ...
- the content in our property files before Sonarqube 7.6
sonar.jacoco.reportPaths=/target/coverage-reports/jacoco-ut.exec sonar.junit.reportPaths=/target/surefire-reports,/target/failsafe-reports sonar.java.binaries=target sonar.modules=folder1, folder2, folder3, folder4 folder1.sonar.projectBaseDir=/project/folder1 folder1.sonar.sources=src folder2.sonar.projectBaseDir=/project/folder2 folder2.sonar.sources=src ...
we try the project level properties like this
sonar.projectBaseDir=/project sonar.sources=/folder1/src, /folder2/src sonar.jacoco.reportPaths=/folder1/target/surefire-reports,/folder1/target/failsafe-reports,/folder2/target/surefire-reports,/folder2/target/failsafe-reports sonar.junit.reportPaths=/folder1/target/coverage-reports/jacoco-ut.exec,/folder2/target/coverage-reports/jacoco-ut.exec sonar.java.binaries=/folder1/target,/folder2/target
For the properties above, it will get error if it contains same java name in different folders for the same project. same issue in stackoverFlow, it contains two solutions for this issue, it cannot help for me, because we still want to includes all those of the same name java file(they are different code), and cannot rename the file name also.
so could anyone help on this? if you have any advice, please let me know and check, much thanks!