From eb3a128324e08c0e553685a6408a7504618c3410 Mon Sep 17 00:00:00 2001 From: yangzidemuou <113151095+yangzidemuou@users.noreply.github.com> Date: Thu, 14 Dec 2023 15:44:11 +0800 Subject: [PATCH] Update build.gradle (#21) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决windows下构建项目出现的编码错误问题 #19 ```release-note None ``` --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 78448a7..2a8a28c 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") }