Skip to content

Commit 9432b27

Browse files
authored
Merge pull request #4 from prgrms-web-devcourse-final-project/feature/github-action
Chore: 자코코, 소나, 체크스타일 옵션 추가
2 parents 2d10eda + b9d2427 commit 9432b27

File tree

3 files changed

+466
-0
lines changed

3 files changed

+466
-0
lines changed

build.gradle.kts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ plugins {
22
java
33
id("org.springframework.boot") version "3.4.4"
44
id("io.spring.dependency-management") version "1.1.7"
5+
id("org.sonarqube") version "6.0.1.5171"
6+
jacoco
7+
checkstyle
58
}
69

710
group = "com.example"
@@ -50,3 +53,26 @@ dependencies {
5053
tasks.withType<Test> {
5154
useJUnitPlatform()
5255
}
56+
57+
tasks.jacocoTestReport {
58+
reports {
59+
xml.required = true
60+
csv.required = false
61+
}
62+
}
63+
64+
checkstyle {
65+
configFile = file("${rootDir}/naver-checkstyle-rules.xml")
66+
configProperties["suppressionFile"] = "${rootDir}/naver-checkstyle-suppressions.xml"
67+
toolVersion = "9.2"
68+
}
69+
70+
sonar {
71+
properties {
72+
property("sonar.projectKey", "sapiens2000-dev_simple-sns")
73+
property("sonar.organization", "sapiens2000-dev")
74+
property("sonar.host.url", "https://sonarcloud.io")
75+
property("sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml")
76+
property("sonar.java.checkstyle.reportPaths", "build/reports/checkstyle/main.xml")
77+
}
78+
}

0 commit comments

Comments
 (0)