File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff 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
710group = " com.example"
@@ -50,3 +53,26 @@ dependencies {
5053tasks.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+ }
You can’t perform that action at this time.
0 commit comments