Versions used:
Sonarqube 7.2, Gradle Plugin 2.6.2, Android Studio 3.1.3, Gradle 4.6, Multi-Project configuration
My Problem:
In a Multi-Proyect gradle configuration I have some libs organized by directories. Lets say;
root
|_AppsDirectory
|____App1
|____App2
|_LibsDirectory
|____Lib1
|____categoryDirectory1
|_______Lib2
|_______categoryDirectory2
|___________Lib3
|____categoryDirectory3
|_______Lib4
|_______Lib5
In order to make sonar work I have to change every moduleKey property to replace their â/â into â:â so that for example Lib2 subproject will set property âsonar.moduleKeyâ from its default â:LibsDirectory/categoryDirectory1:Lib2â to â:LibsDirectory:categoryDirectory1:Lib2â as slashes ar not allowed for moduleKey
Given this, my proyect buidls successfully and sonar can analyze it but in SonarQube Web, inside âCodeâ section only those modules directly hanging from its first level directory appears inside its directory (i.e. Lib1 inside LibsDirectory) but all others hangs from root.
In conclusion Iâll see the following:
root
|_AppsDirectory
|____App1
|____App2
|_LibsDirectory
|____Lib1
|_categoryDirectory1
|_Lib2
|_categoryDirectory2
|_Lib3
|_categoryDirectory3
|_Lib4
|_Lib5
So, How can I change a module Path for a module so that it only changes on sonarQubeUI and doesnât break sonar analysing?