[build.gradle] 抑制 Java 7 编译过时警告

- 在 subprojects 全局配置中添加 -Xlint:-options 编译器参数
- 消除 source value 7 is obsolete 和 target value 7 is obsolete 警告
- build.properties 由构建系统自动更新
This commit is contained in:
BigPickle
2026-07-21 08:40:42 +08:00
parent 5d49185752
commit 231de80efa
3 changed files with 5 additions and 4 deletions
+1
View File
@@ -89,6 +89,7 @@ allprojects {
subprojects {
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs << '-Xlint:-options'
}
}
}