Skip to content

Commit

Permalink
ci: moved sonar settings out
Browse files Browse the repository at this point in the history
  • Loading branch information
ennioVisco committed Jul 26, 2023
1 parent 8f234e7 commit 3855e84
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,4 @@ tasks.check {
dependsOn(tasks.named<JacocoReport>("testCodeCoverageReport"))
}

// == Sonarqube settings ==
sonar {
// TODO: change project key with `project.name` when sonarcloud is properly configured
properties {
property("sonar.projectKey", "MoonLightSuite_MoonLight")
property("sonar.projectName", "Moonlight")
property("sonar.organization", "moonlightsuite")
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.sourceEncoding", "UTF-8")

// property(
// "sonar.coverage.jacoco.xmlReportPaths",
// "build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml"
// )
}
}
17 changes: 17 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,20 @@ fun Copy.copyModulesUpwards() {
into("$buildDir/jmods")
}
}

// == Sonarqube settings ==
sonar {
// TODO: change project key with `project.name` when sonarcloud is properly configured
properties {
property("sonar.projectKey", "MoonLightSuite_MoonLight")
property("sonar.projectName", "Moonlight")
property("sonar.organization", "moonlightsuite")
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.sourceEncoding", "UTF-8")

property(
"sonar.coverage.jacoco.xmlReportPaths",
"./build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml"
)
}
}

0 comments on commit 3855e84

Please sign in to comment.