mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 08:15:02 +00:00
Fix Sonar with AGP 9 (some workarounds) (#7055)
Since it'll try to resolve their output, first they need to complete.
This commit is contained in:
committed by
GitHub
parent
c82d1011d7
commit
e370b33771
@@ -24,6 +24,7 @@ import extension.buildConfigFieldStr
|
||||
import extension.locales
|
||||
import extension.setupDependencyInjection
|
||||
import extension.testCommonDependencies
|
||||
import org.sonarqube.gradle.SonarResolverTask
|
||||
import java.util.Locale
|
||||
|
||||
plugins {
|
||||
@@ -245,6 +246,11 @@ androidComponents {
|
||||
configureLicensesTasks(reportingExtension)
|
||||
}
|
||||
|
||||
// Configure the SonarQube plugin to wait for the resource generation tasks to complete before running the analysis.
|
||||
tasks.withType<SonarResolverTask>().configureEach {
|
||||
dependsOn("generateGplayDebugResValues", "generateGplayDebugAndroidTestResValues")
|
||||
}
|
||||
|
||||
setupDependencyInjection()
|
||||
|
||||
dependencies {
|
||||
|
||||
Reference in New Issue
Block a user