diff --git a/build.gradle b/build.gradle index c4ff83ba..d97a33bb 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,24 @@ plugins { id 'java' id 'org.springframework.boot' version '3.1.4' id 'io.spring.dependency-management' version '1.1.3' + + id 'jacoco' + id 'org.sonarqube' version '4.4.1.3373' +} + +sonar { + properties { + property 'sonar.host.url', 'https://sonarcloud.io' + property 'sonar.organization', 'we-are-raccoons' + property 'sonar.projectKey', 'WE-ARE-RACCOONS_postgraduate-back' + property 'sonar.coverage.jacoco.xmlReportPaths', 'build/reports/jacoco/test/jacocoTestReport.xml' + } +} + +jacocoTestReport { + reports { + xml.required = true + } } group = 'com' @@ -59,9 +77,9 @@ dependencies { // Spring boot 3.x이상에서 QueryDsl 패키지를 정의하는 방법 implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta' - annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jakarta" - annotationProcessor "jakarta.annotation:jakarta.annotation-api" - annotationProcessor "jakarta.persistence:jakarta.persistence-api" + annotationProcessor 'com.querydsl:querydsl-apt:5.0.0:jakarta' + annotationProcessor 'jakarta.annotation:jakarta.annotation-api' + annotationProcessor 'jakarta.persistence:jakarta.persistence-api' // prometheus metric implementation 'org.springframework.boot:spring-boot-starter-actuator'