Hello I downloaded free community version of sonarqube.
Setup plugin in root build.gradle and included
subprojects {
apply plugin: 'org.sonarqube'
sonarqube() {
androidVariant "ukDebug"
}
}
When then executing command to get results from the project to locally run Sonarqube I received following error
* What went wrong:
Could not determine the dependencies of task ':sonarqube'.
> Unable to find variant 'ukDebug' to use for SonarQube analysis. Candidates are: debug, release, minifiedDebug
Changingto debug produces following error
* What went wrong:
Could not determine the dependencies of task ':sonarqube'.
> Unable to find variant 'debug' to use for SonarQube analysis. Candidates are: nlDebug, noDebug, ukDebug, beDebug, deDebug
I tried to follow official documentation from here SonarScanner for Gradle | SonarQube Docs
Also this community post here Can't run for a specific flavor by using androidVariant
Could somebody please point out if I am missing something