I want to use SonarQube to analyze an Android project:
-> I used android build tools 3.3.x, so I need to have gradle to 4.10.1
-> i use the org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7 to performs the analysis
-> My sonarQube server is in version :
When i launch ./gradlew sonarqube it fails with :
WARNING: API ‘variant.getJavaCompile()’ is obsolete and has been replaced with ‘variant.getJavaCompileProvider()’.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
Task :sonarqube FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:sonarqube’.
Unable to execute SonarQube
The sonarQube gradle plugin doc is not very explicit if it works with with gradle 4.x (only say 2.x in doc ) , anyone have try it ?