Skip to content

Commit eb22204

Browse files
committed
Added sonar task.
1 parent 2e35eda commit eb22204

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
env:
4040
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
SONAR_TOKEN: 19107c464b65c0769768d4564dd1c9b0c2822edd
42-
run: chmod +x gradlew && ./gradlew test jacocoTestReport --no-daemon
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
4343
- uses: codecov/codecov-action@v1
4444
with:
4545
file: ./**/build/reports/jacoco/test/jacocoTestReport.xml

build.gradle.kts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ tasks {
3737
jacocoTestReport {
3838
reports {
3939
xml.required.set(true)
40-
html.required.set(false)
4140
}
4241
}
4342
}
44-
45-
sonarqube {
46-
properties {
47-
property("sonar.inclusions", "*.java,*.kt")
48-
property("sonar.java.binaries", "$projectDir/build/classes/kotlin")
49-
}
50-
}

0 commit comments

Comments
 (0)