-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
57 lines (50 loc) · 1.86 KB
/
build.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
45
46
47
48
49
50
51
52
53
54
55
56
57
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: "org.sonarqube"
buildscript {
ext.kotlin_version = '1.3.72'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.12"
classpath "com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.8"
def nav_version = "2.3.0-alpha06"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
classpath 'com.google.gms:google-services:4.3.3'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.1'
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io'}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
sonarqube {
properties {
property "sonar.projectKey", "covidwatchorg_covidwatch-android-en"
property "sonar.organization", "covidwatchorg"
property "sonar.host.url", "https://sonarcloud.io"
}
}
subprojects {
apply plugin: 'org.sonarqube'
apply plugin: 'jacoco'
if ( project.path != ":tcn-client-android") {
sonarqube {
properties {
property "sonar.projectKey", "covidwatchorg_covidwatch-android-en:${project.name}"
property "sonar.coverage.jacoco.xmlReportPaths", "${buildDir}/reports/jacoco/debug/jacoco.xml,${buildDir}/reports/jacoco/release/jacoco.xml,${buildDir}/reports/jacocoCombined/debug/jacoco.xml"
property 'sonar.androidLint.reportPaths', "${buildDir}/reports/lint-results.xml"
}
}
}
}