I don’t see any mention of JavaScript plugin in the logs. Can you verify that it is really installed? Can you please enable debug level logs and post them here?
From the log I see this is multi-module gradle build. We need to configure sonar.sources property specifically for ui module. I recommend adding following to the build.gradle file in ui subdirectory
@saberduck
I tried that addition and get the following after a “Succesful” scan
There is no code at all. In the root build.gradle we have
sonarqube {
properties {
property “sonar.projectName”, “ERM”
property “sonar.projectKey”, “drms”
}
}
OK, it seems that there is some issue related to branch analysis. Just to avoid dealing with multiple problems at the same time, can you please run analysis with current settings on the main branch? Once we establish that analysis is running correctly on the main branch, we can troubleshoot short-live branch settings
Set in the property within the master branch and our code is now analyzed Thank you very MUCH. Can you explain to me why the property needs set in ui/build.gradle?
When set in build.gradle at root level of project the following error happens “Sonar fails with can’t be indexed twice Error. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files”
My reason for the questioning is just that it seems having to set it in the ui seems like a hack to me.
In multi-module projects each module is analyzed separately, because configuration is different (each module can have different dependencies, source directories, etc…), that’s why we need to configure sonar.sources property for that specific module.
I would be interested to understand what kind of build instructions you use for the ui module, I think we could improve our gradle plugin to pick up the configuration automatically, so it is not necessary to configure it (we already do that for Java modules). Do you use some plugin to build and package your JS sources?