Add SonarQube scan workflow
All checks were successful
SonarQube Scan / SonarQube Trigger (push) Successful in 18m19s

This commit introduces a Gitea workflow to trigger
SonarQube scans on pushes to the `main` branch and
on pull requests.
This commit is contained in:
2025-07-19 00:04:19 +02:00
committed by Christian Basler
parent 1836f53d7b
commit 1527ab0cb0
3 changed files with 52 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
alias(libs.plugins.versions)
alias(libs.plugins.sonarqube)
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.compose) apply false
@@ -15,6 +16,13 @@ plugins {
alias(libs.plugins.jetbrains.kotlin.android) apply false
}
sonar {
properties {
property("sonar.projectKey", "YAEP")
property("sonar.projectName", "YAEP")
}
}
tasks.withType<KotlinJvmCompile>().configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.fromTarget(libs.versions.jdk.get()))