Skip to content

Commit

Permalink
Tweak sonar config
Browse files Browse the repository at this point in the history
  • Loading branch information
davidc-gds committed Jun 27, 2024
1 parent 2936725 commit 68bf330
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 10 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,22 @@ plugins {
alias(libs.plugins.hilt)
alias(libs.plugins.ksp)
id("jacoco")
id("org.sonarqube") version "4.4.1.3373"
alias(libs.plugins.sonarQube)
}

sonar {
properties {
property("sonar.projectName", "govuk-mobile-android-app")
property("sonar.projectKey", "alphagov_govuk-mobile-android-app")
property("sonar.organization", "alphagov")
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.sourceEncoding", "UTF-8")
property("sonar.qualitygate.wait", "true")
property("sonar.androidLint.reportPaths", "${projectDir}/build/reports/lint-results-debug.xml")
property("sonar.coverage.jacoco.xmlReportPaths", "${projectDir}/build/test-results/testDebugUnitTest/TEST-*.xml")

// property("sonar.projectName", "govuk-mobile-android-app")
// property("sonar.projectKey", "alphagov_govuk-mobile-android-app")
// property("sonar.organization", "alphagov")
// property("sonar.host.url", "https://sonarcloud.io")
// property("sonar.sourceEncoding", "UTF-8")
// property("sonar.qualitygate.wait", "true")
// property("sonar.androidLint.reportPaths", "${projectDir}/build/reports/lint-results-debug.xml")
// property("sonar.coverage.jacoco.xmlReportPaths", "${projectDir}/build/test-results/testDebugUnitTest/TEST-*.xml")
}
}

Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ adaptiveAndroid = "1.0.0-beta03"
hilt = "2.51.1"
ksp = "2.0.0-1.0.22"
datastorePreferences = "1.1.1"
sonarQube = "5.0.0.4638"

mockk = "1.13.11"
coroutineTest = "1.8.1"
Expand Down Expand Up @@ -56,6 +57,7 @@ compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
sonarQube = { id = "org.sonarqube", version.ref = "sonarQube" }



0 comments on commit 68bf330

Please sign in to comment.