From 0038f0b07c46a74d59ce504ff2285d1baa4a22f1 Mon Sep 17 00:00:00 2001 From: yangzidemuou <113151095+yangzidemuou@users.noreply.github.com> Date: Wed, 13 Dec 2023 17:45:57 +0800 Subject: [PATCH 1/2] Update build.gradle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决windows下构建项目出现的编码错误问题 --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 78448a7..d1c05e8 100644 --- a/build.gradle +++ b/build.gradle @@ -27,6 +27,10 @@ test { useJUnitPlatform() } +tasks.withType(JavaCompile).configureEach { +options.encoding = "UTF-8" +} + node { nodeProjectDir = file("${project.projectDir}/console") } From 56b1b9e35787f31fd9e81c9bc8688ee69fb47c28 Mon Sep 17 00:00:00 2001 From: yangzidemuou <113151095+yangzidemuou@users.noreply.github.com> Date: Thu, 14 Dec 2023 15:32:41 +0800 Subject: [PATCH 2/2] Update build.gradle --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index d1c05e8..2a8a28c 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ test { } tasks.withType(JavaCompile).configureEach { -options.encoding = "UTF-8" + options.encoding = "UTF-8" } node {