Skip to content

Commit

Permalink
[FIX] Fix Sonar settings
Browse files Browse the repository at this point in the history
  • Loading branch information
asteriskzie committed May 26, 2024
1 parent 0bcb63d commit c8aac1a
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 @@ -55,4 +57,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 c8aac1a

Please sign in to comment.