diff --git a/build.gradle.kts b/build.gradle.kts index c412ca78..0ad7d420 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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" @@ -50,3 +53,26 @@ dependencies { tasks.withType { 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") + } +} \ No newline at end of file diff --git a/naver-checkstyle-rules.xml b/naver-checkstyle-rules.xml new file mode 100644 index 00000000..dafbb4d1 --- /dev/null +++ b/naver-checkstyle-rules.xml @@ -0,0 +1,433 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/naver-checkstyle-suppressions.xml b/naver-checkstyle-suppressions.xml new file mode 100644 index 00000000..3f11e0cd --- /dev/null +++ b/naver-checkstyle-suppressions.xml @@ -0,0 +1,7 @@ + + + + +