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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_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 {
|
plugins {
|
||||||
buildsrc.conventions.lang.`kotlin-jvm`
|
buildsrc.conventions.lang.`kotlin-jvm`
|
||||||
buildsrc.conventions.publishing
|
buildsrc.conventions.publishing
|
||||||
|
buildsrc.conventions.sonarqube
|
||||||
id("application")
|
id("application")
|
||||||
id("com.github.ben-manes.versions")
|
id("com.github.ben-manes.versions")
|
||||||
}
|
}
|
||||||
|
@ -31,6 +32,8 @@ val urlEncoderMainClass = "net.thauvin.erik.urlencoder.UrlEncoder"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(projects.lib)
|
implementation(projects.lib)
|
||||||
|
kover(projects.lib)
|
||||||
|
|
||||||
// testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.25")
|
// testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.25")
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter:5.9.1")
|
testImplementation("org.junit.jupiter:junit-jupiter:5.9.1")
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,6 @@ plugins {
|
||||||
kotlin("multiplatform")
|
kotlin("multiplatform")
|
||||||
id("io.gitlab.arturbosch.detekt")
|
id("io.gitlab.arturbosch.detekt")
|
||||||
id("org.jetbrains.kotlinx.kover")
|
id("org.jetbrains.kotlinx.kover")
|
||||||
id("org.sonarqube")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,10 +33,10 @@ plugins {
|
||||||
id("org.jetbrains.kotlinx.kover")
|
id("org.jetbrains.kotlinx.kover")
|
||||||
}
|
}
|
||||||
|
|
||||||
if (project != rootProject) {
|
//if (project != rootProject) {
|
||||||
logger.warn("The SonarQube convention plugin should only be applied to the root project")
|
// 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
|
// // https://docs.sonarqube.org/latest/analyzing-source-code/scanners/sonarscanner-for-gradle/#analyzing-multi-project-builds
|
||||||
}
|
//}
|
||||||
|
|
||||||
sonarqube {
|
sonarqube {
|
||||||
properties {
|
properties {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue