Context: Android multi-module project, using Kotlin, using the SonarScanner Gradle plugin
We have a CI pipeline that splits out various checks (lint, test, build, etc) into separate jobs, so that we can run them in parallel. After these jobs have all completed, we run the sonar
Gradle task in another job that includes any required artifacts generated by the previous jobs (e.g. the coverage report).
However, the sonar
task depends upon various build / test tasks (see: sonar-scanner-gradle/SonarQubePlugin.java at a4f267175a438d81904899d923c67919df2cafdc · SonarSource/sonar-scanner-gradle · GitHub), which means that the SonarScanner task takes longer than is needed. We would like to be able to opt out of these task dependencies, and thus speed up this job, since anything that the SonarScanner plugin needs has already been computed in a prior task