Skip to content

Commit

Permalink
Merge pull request #18 from ADPRO-C11/sonar
Browse files Browse the repository at this point in the history
[FIX]  Fix Sonar settings
  • Loading branch information
asteriskzie authored May 26, 2024
2 parents a0f92f4 + c8aac1a commit 78a3a29
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id("org.springframework.boot") version "3.2.5"
id("io.spring.dependency-management") version "1.1.4"
jacoco
id("org.sonarqube") version "4.4.1.3373"
}

group = "snackscription"
Expand All @@ -12,6 +13,7 @@ java {
sourceCompatibility = JavaVersion.VERSION_21
}


configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
Expand Down Expand Up @@ -56,4 +58,12 @@ tasks.jacocoTestReport {
csv.required.set(false)
html.outputLocation.set(layout.buildDirectory.dir("jacocoHtml"))
}
}

sonar {
properties {
property("sonar.projectKey","ADPRO-C11_snackscription-review")
property("sonar.organization", "adpro-c11")
property("sonar.host.url", "https://sonarcloud.io")
}
}
5 changes: 5 additions & 0 deletions gradle/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
systemProp.sonar.host.url=https://sonarcloud.io

# Token generated from an account with 'Execute analysis' permission.
# It can also be set with the environment variable SONAR_TOKEN.
systemProp.sonar.token=${SONAR_TOKEN}

0 comments on commit 78a3a29

Please sign in to comment.