only enable SonarQube in :app
This commit is contained in:
parent
86ae661788
commit
13c73903c3
4 changed files with 8 additions and 6 deletions
2
.github/workflows/gradle.yml
vendored
2
.github/workflows/gradle.yml
vendored
|
@ -46,4 +46,4 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
run: ./gradlew :sonar --info -Dsonar.verbose=true
|
||||
run: ./gradlew :app:sonar --info -Dsonar.verbose=true
|
||||
|
|
|
@ -20,6 +20,7 @@ import org.jetbrains.dokka.gradle.DokkaTask
|
|||
plugins {
|
||||
buildsrc.conventions.lang.`kotlin-jvm`
|
||||
buildsrc.conventions.publishing
|
||||
buildsrc.conventions.sonarqube
|
||||
id("application")
|
||||
id("com.github.ben-manes.versions")
|
||||
}
|
||||
|
@ -31,6 +32,8 @@ val urlEncoderMainClass = "net.thauvin.erik.urlencoder.UrlEncoder"
|
|||
|
||||
dependencies {
|
||||
implementation(projects.lib)
|
||||
kover(projects.lib)
|
||||
|
||||
// testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.25")
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.9.1")
|
||||
}
|
||||
|
|
|
@ -18,7 +18,6 @@ plugins {
|
|||
kotlin("multiplatform")
|
||||
id("io.gitlab.arturbosch.detekt")
|
||||
id("org.jetbrains.kotlinx.kover")
|
||||
id("org.sonarqube")
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -33,10 +33,10 @@ plugins {
|
|||
id("org.jetbrains.kotlinx.kover")
|
||||
}
|
||||
|
||||
if (project != rootProject) {
|
||||
logger.warn("The SonarQube convention plugin should only be applied to the root project")
|
||||
// https://docs.sonarqube.org/latest/analyzing-source-code/scanners/sonarscanner-for-gradle/#analyzing-multi-project-builds
|
||||
}
|
||||
//if (project != rootProject) {
|
||||
// logger.warn("The SonarQube convention plugin should only be applied to the root project")
|
||||
// // https://docs.sonarqube.org/latest/analyzing-source-code/scanners/sonarscanner-for-gradle/#analyzing-multi-project-builds
|
||||
//}
|
||||
|
||||
sonarqube {
|
||||
properties {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue