diff --git a/build.gradle b/build.gradle index f9443e4..b592a79 100644 --- a/build.gradle +++ b/build.gradle @@ -93,11 +93,12 @@ allprojects { } subprojects { - // 1. 对纯 Java 模块的 JavaCompile 任务配置(强制Java 7) + // 1. 对纯 Java 模块的 JavaCompile 任务配置(升级为 Java 11) tasks.withType(JavaCompile) { options.compilerArgs << "-parameters" sourceCompatibility = JavaVersion.VERSION_1_7 targetCompatibility = JavaVersion.VERSION_1_7 + // 可选:确保编码一致 options.encoding = "UTF-8" } }