指定使用 UTF-8 编码编译 buildSrc 子项目 (#4677)

This commit is contained in:
Glavo
2025-10-15 21:11:00 +08:00
committed by GitHub
parent df6f35bc8e
commit ecb4eedd12

View File

@@ -17,6 +17,10 @@ java {
targetCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17
} }
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.processResources { tasks.processResources {
into("org/jackhuang/hmcl/gradle/l10n") { into("org/jackhuang/hmcl/gradle/l10n") {
from(projectDir.resolve("../HMCLCore/src/main/resources/assets/lang/")) from(projectDir.resolve("../HMCLCore/src/main/resources/assets/lang/"))