Skip to content

Commit

Permalink
Fix SonarCloud Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sdikyarts committed May 25, 2024
1 parent 2fe028f commit dcdb060
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ jobs:
SPRING_DATASOURCE_PASSWORD: postgres
run: |
chmod +x ./gradlew
./gradlew build jacocoTestReport sonarqube --info
./gradlew build jacocoTestReport sonar --info
9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -64,6 +65,14 @@ tasks.register<Test>("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<Test>().configureEach() {
useJUnitPlatform()
}
Expand Down

0 comments on commit dcdb060

Please sign in to comment.