From dcdb060cc61e9bfe3b69d835b64413b103e4c66f Mon Sep 17 00:00:00 2001 From: sdikyarts Date: Sun, 26 May 2024 05:05:59 +0700 Subject: [PATCH] Fix SonarCloud Configuration --- .github/workflows/sonarcloud.yml | 2 +- build.gradle.kts | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 9889b3b..eded1b2 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -72,4 +72,4 @@ jobs: SPRING_DATASOURCE_PASSWORD: postgres run: | chmod +x ./gradlew - ./gradlew build jacocoTestReport sonarqube --info \ No newline at end of file + ./gradlew build jacocoTestReport sonar --info \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 8e9d3b1..bec1fb7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,6 +3,7 @@ plugins { jacoco id("org.springframework.boot") version "3.2.5" id("io.spring.dependency-management") version "1.1.4" + id("org.sonarqube") version "4.4.1.3373" } group = "snackscription" @@ -64,6 +65,14 @@ tasks.register("functionalTest") { } } +sonar { + properties { + property("sonar.projectKey", "ADPRO-C11_snackscription-subscription-admin") + property("sonar.organization", "adpro-c11") + property("sonar.host.url", "https://sonarcloud.io") + } +} + tasks.withType().configureEach() { useJUnitPlatform() }