@@ -96,23 +96,26 @@ android {
96
96
97
97
sonar {
98
98
properties {
99
- property(" sonar.projectKey" , " PeriodPals_periodpals " )
99
+ property(" sonar.projectKey" , " periodpals_periodpals " )
100
100
property(" sonar.organization" , " periodpals" )
101
101
property(" sonar.host.url" , " https://sonarcloud.io" )
102
102
// Comma-separated paths to the various directories containing the *.xml JUnit report files.
103
103
// Each path may be absolute or relative to the project base directory.
104
104
property(
105
- " sonar.junit.reportPaths" ,
106
- " ${project.layout.buildDirectory.get()} /test-results/testDebugunitTest/" )
105
+ " sonar.junit.reportPaths" ,
106
+ " ${project.layout.buildDirectory.get()} /test-results/testDebugunitTest/"
107
+ )
107
108
// Paths to xml files with Android Lint issues. If the main flavor is changed, this file will
108
109
// have to be changed too.
109
110
property(
110
- " sonar.androidLint.reportPaths" ,
111
- " ${project.layout.buildDirectory.get()} /reports/lint-results-debug.xml" )
111
+ " sonar.androidLint.reportPaths" ,
112
+ " ${project.layout.buildDirectory.get()} /reports/lint-results-debug.xml"
113
+ )
112
114
// Paths to JaCoCo XML coverage report files.
113
115
property(
114
- " sonar.coverage.jacoco.xmlReportPaths" ,
115
- " ${project.layout.buildDirectory.get()} /reports/jacoco/jacocoTestReport/jacocoTestReport.xml" )
116
+ " sonar.coverage.jacoco.xmlReportPaths" ,
117
+ " ${project.layout.buildDirectory.get()} /reports/jacoco/jacocoTestReport/jacocoTestReport.xml"
118
+ )
116
119
}
117
120
}
118
121
@@ -200,20 +203,19 @@ tasks.register("jacocoTestReport", JacocoReport::class) {
200
203
}
201
204
202
205
val fileFilter =
203
-
204
- listOf (
205
- " **/R.class" ,
206
- " **/R$*.class" ,
207
- " **/BuildConfig.*" ,
208
- " **/Manifest*.*" ,
209
- " **/*Test*.*" ,
210
- " android/**/*.*" ,
211
- )
206
+ listOf (
207
+ " **/R.class" ,
208
+ " **/R$*.class" ,
209
+ " **/BuildConfig.*" ,
210
+ " **/Manifest*.*" ,
211
+ " **/*Test*.*" ,
212
+ " android/**/*.*" ,
213
+ )
212
214
213
215
val debugTree =
214
- fileTree(" ${project.layout.buildDirectory.get()} /tmp/kotlin-classes/debug" ) {
215
- exclude(fileFilter)
216
- }
216
+ fileTree(" ${project.layout.buildDirectory.get()} /tmp/kotlin-classes/debug" ) {
217
+ exclude(fileFilter)
218
+ }
217
219
218
220
val mainSrc = " ${project.layout.projectDirectory} /src/main/java"
219
221
sourceDirectories.setFrom(files(mainSrc))
@@ -224,5 +226,4 @@ tasks.register("jacocoTestReport", JacocoReport::class) {
224
226
include(" outputs/code_coverage/debugAndroidTest/connected/*/coverage.ec" )
225
227
}
226
228
)
227
-
228
229
}
0 commit comments