From 01db76de15bf69c5ad1b9bc356ec574b8cb2893b Mon Sep 17 00:00:00 2001 From: Rinjae Date: Fri, 5 Dec 2025 14:26:01 +0900 Subject: [PATCH] =?UTF-8?q?gradle=20checkstyle=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 13 +++++++++++++ config/checkstyle/checkstyle.xml | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 config/checkstyle/checkstyle.xml diff --git a/build.gradle b/build.gradle index ab83a96..261119d 100644 --- a/build.gradle +++ b/build.gradle @@ -6,6 +6,7 @@ plugins { id 'war' id 'com.diffplug.eclipse.apt' version '3.41.1' id 'project-report' + id 'checkstyle' } group 'com.eactive' @@ -35,6 +36,10 @@ java { languageVersion = JavaLanguageVersion.of(8) } } + +checkstyle { + toolVersion = '8.45.1' +} compileJava { options.encoding = 'UTF-8' @@ -255,4 +260,12 @@ eclipse { buildCommand 'org.eclipse.buildship.core.gradleprojectbuilder' } } +} + + +tasks.withType(Checkstyle) { + reports { + xml.required = false + html.required = true + } } \ No newline at end of file diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml new file mode 100644 index 0000000..22e595a --- /dev/null +++ b/config/checkstyle/checkstyle.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + +