Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this
- SonarQube 7.8, Scanner gradle 2.7
- I want integrate sonarqube to android project and i follow the doc to setup sonar server and scanner. but when execute ./gradlew sonarqube command , the scanner will throw error “.java can’t be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files”.
there is no test folder in my current project and i have specify the ‘sonar.sources’ folder. here is my gradle sonarqube config
plugins {
id "org.sonarqube" version "2.7"
}
sonarqube {
properties {
property 'sonar.sources', 'folderA/folderB'
property 'sonar.exclusions', '**/res/**, **/build/**'
property 'sonar.inclusions', '**/src/**'
}
}
I have no idea what problem with my config, any help will be appreciated.