Fix: IJ support (#4343)

This commit is contained in:
Burning_TNT
2025-08-26 22:43:26 +08:00
committed by GitHub
parent 97219c951e
commit 0fdfc945c3

View File

@@ -298,9 +298,9 @@ fun parseToolOptions(options: String?): MutableList<String> {
tasks.withType<JavaExec> {
if (name != "run") {
jvmArgs(addOpens.map { "--add-opens=$it=ALL-UNNAMED" })
if (javaVersion >= JavaVersion.VERSION_24) {
jvmArgs("--enable-native-access=ALL-UNNAMED")
}
// if (javaVersion >= JavaVersion.VERSION_24) {
// jvmArgs("--enable-native-access=ALL-UNNAMED")
// }
}
}