-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathsonar.gradle
44 lines (41 loc) · 1.24 KB
/
sonar.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
apply plugin: "org.sonarqube"
ext.sonar = [
ignoreModules : [
'stream-video-android-bom',
'stream-video-android-previewdata',
'demo-app',
'benchmark',
'tutorials',
'tutorial-audio',
'tutorial-video',
'tutorial-ringing',
'tutorial-livestream',
'metrics'
],
excludeFilter : [
'**/test/**',
'**/androidTest/**',
'**/R.class',
'**/R2.class',
'**/R$*.class',
'**/BuildConfig.*',
'**/Manifest*.*',
'**/*Test*.*'
]
]
ext.sonar.ignoreModules.each {
ext.sonar.excludeFilter << "**/${it}/**"
}
sonarqube {
properties {
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.token", "${System.getenv("SONAR_TOKEN")}")
property("sonar.organization", "getstream")
property("sonar.projectKey", "GetStream_stream-video-android")
property("sonar.projectName", "stream-video-android")
property "sonar.java.coveragePlugin", "jacoco"
property "sonar.sourceEncoding", "UTF-8"
property "sonar.java.binaries", "${rootDir}/**/build/tmp/kotlin-classes/debug"
property "sonar.coverage.exclusions", rootProject.ext.sonar.excludeFilter
}
}