diff --git a/build.gradle.kts b/build.gradle.kts index de1a892..f1016f9 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 "5.0.0.4638" } group = "snackscription" @@ -27,16 +28,23 @@ dependencies { implementation("org.springframework.boot:spring-boot-starter-thymeleaf") implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spring-boot-starter-actuator") - implementation("io.micrometer:micrometer-registry-prometheus") - implementation("io.micrometer:micrometer-core") compileOnly("org.projectlombok:lombok") developmentOnly("org.springframework.boot:spring-boot-devtools") runtimeOnly("org.postgresql:postgresql") + runtimeOnly("io.micrometer:micrometer-registry-prometheus") annotationProcessor("org.springframework.boot:spring-boot-configuration-processor") annotationProcessor("org.projectlombok:lombok") testImplementation("org.springframework.boot:spring-boot-starter-test") } +sonar { + properties { + property("sonar.projectKey","ADPRO-C11_snackscription-review") + property("sonar.organization", "adpro-c11") + property("sonar.host.url", "https://sonarcloud.io") + } +} + tasks.register("unitTest") { description = "Runs unit tests." group = "verification" @@ -75,5 +83,6 @@ tasks.jacocoTestReport { reports { xml.required.set(true) csv.required.set(true) + html.outputLocation.set(layout.buildDirectory.dir("jacocoHtml")) } } \ No newline at end of file