Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ plugins {
java
id("org.springframework.boot") version "3.4.4"
id("io.spring.dependency-management") version "1.1.7"
id("org.sonarqube") version "6.0.1.5171"
jacoco
checkstyle
}

group = "com.example"
Expand Down Expand Up @@ -50,3 +53,26 @@ dependencies {
tasks.withType<Test> {
useJUnitPlatform()
}

tasks.jacocoTestReport {
reports {
xml.required = true
csv.required = false
}
}

checkstyle {
configFile = file("${rootDir}/naver-checkstyle-rules.xml")
configProperties["suppressionFile"] = "${rootDir}/naver-checkstyle-suppressions.xml"
toolVersion = "9.2"
}

sonar {
properties {
property("sonar.projectKey", "sapiens2000-dev_simple-sns")
property("sonar.organization", "sapiens2000-dev")
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml")
property("sonar.java.checkstyle.reportPaths", "build/reports/checkstyle/main.xml")
}
}
Loading