-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
46 lines (39 loc) · 1.06 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
apply plugin: 'org.sonarqube'
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.60"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2"
classpath "com.dicedmelon.gradle:jacoco-android:0.1.3"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
sonarqube {
properties {
property 'sonar.projectKey', 'cover-my-kotlin-code'
property 'sonar.projectName', 'Cover my Kotlin code'
}
}
project(':app') {
sonarqube {
properties {
property 'sonar.jacoco.reportPaths', 'build/jacoco/testDebugUnitTest.exec'
// didn't help
property 'sonar.java.binaries', 'build/tmp/kotlin-classes/debug'
// didn't help
property 'sonar.junit.reportPaths', 'build/reports/tests/testDebugUnitTest'
}
}
}