Skip to content

Commit 3375ce1

Browse files
committed
fix runtime exception caused by illegal reflective-access operations
1 parent 1a64f20 commit 3375ce1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ compileJava {
6161
task execute(type: JavaExec) {
6262
main = findProperty("mainClass") ?: ""
6363
classpath = sourceSets.main.runtimeClasspath
64+
jvmArgs += '--add-opens=java.base/java.lang=ALL-UNNAMED' // Upgrade to Java 21
65+
jvmArgs += '--add-opens=java.base/java.time=ALL-UNNAMED' // Upgrade to Java 21
6466
}
6567

6668
license {

0 commit comments

Comments
 (0)