File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 39
39
env :
40
40
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
41
SONAR_TOKEN : 19107c464b65c0769768d4564dd1c9b0c2822edd
42
- run : chmod +x gradlew && ./gradlew test koverXmlReport sonarqube -Dsonar.projectKey=javadev_LeetCode-in-Kotlin -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=javadev-github
42
+ run : chmod +x gradlew && ./gradlew test jacocoTestReport sonarqube -Dsonar.projectKey=javadev_LeetCode-in-Kotlin -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=javadev-github --no-daemon
43
43
- uses : codecov/codecov-action@v1
44
44
with :
45
- file : ./**/build/reports/kover/project-xml/report .xml
45
+ file : ./**/build/reports/jacoco/test/jacocoTestReport .xml
46
46
name : codecov
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" jvm" ) version " 1.6.10"
3
- id( " org.jetbrains.kotlinx.kover " ) version " 0.5.0 "
3
+ jacoco
4
4
id(" org.sonarqube" ) version " 3.3"
5
5
id(" com.diffplug.spotless" ) version " 6.1.2"
6
6
`maven- publish`
@@ -50,12 +50,10 @@ spotless {
50
50
}
51
51
}
52
52
53
- tasks.koverXmlReport {
54
- isEnabled = true
55
- }
56
-
57
- sonarqube {
58
- properties {
59
- property(" sonar.coverage.jacoco.xmlReportPaths" , " build/reports/kover/project-xml/report.xml" )
53
+ tasks {
54
+ jacocoTestReport {
55
+ reports {
56
+ xml.required.set(true )
60
57
}
58
+ }
61
59
}
You can’t perform that action at this time.
0 commit comments