Skip to content

Commit 6fa6f23

Browse files
authored
在 Manifest 文件中添加 Enable-Final-Field-Mutation 条目 (#4561)
1 parent 8351ee4 commit 6fa6f23

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

HMCL/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ tasks.shadowJar {
206206
"Main-Class" to "org.jackhuang.hmcl.Main",
207207
"Multi-Release" to "true",
208208
"Add-Opens" to addOpens.joinToString(" "),
209-
"Enable-Native-Access" to "ALL-UNNAMED"
209+
"Enable-Native-Access" to "ALL-UNNAMED",
210+
"Enable-Final-Field-Mutation" to "ALL-UNNAMED",
210211
)
211212

212213
if (launcherExe.isNotBlank()) {

0 commit comments

Comments
 (0)