From 7830aee14a2afe013e762517cdca051bb82f5461 Mon Sep 17 00:00:00 2001 From: ByeongGyu Jeon Date: Tue, 25 Mar 2025 10:45:39 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20jacoco,=20sonarcloud,=20checkstyle?= =?UTF-8?q?=20=EC=98=B5=EC=85=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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 From b9d24272b19be598d51216a2c8cf65cb77590463 Mon Sep 17 00:00:00 2001 From: ByeongGyu Jeon Date: Tue, 25 Mar 2025 10:45:55 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=EC=BD=94=EB=93=9C=20=EC=A0=95?= =?UTF-8?q?=EC=A0=81=20=EB=B6=84=EC=84=9D=EC=9D=84=20=EC=9C=84=ED=95=9C=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- naver-checkstyle-rules.xml | 433 ++++++++++++++++++++++++++++++ naver-checkstyle-suppressions.xml | 7 + 2 files changed, 440 insertions(+) create mode 100644 naver-checkstyle-rules.xml create mode 100644 naver-checkstyle-suppressions.xml 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 @@ + + + + +