File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Keep all these properties in sync unless you know what you are doing!
2
2
org.gradle.jvmargs =-Xmx2g -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Duser.timezone=UTC -Dfile.encoding=UTF-8
3
- # Needs add-opens because of https://github.com/gradle/gradle/issues/15538
4
- toolchain.compiler.jvmargs =-Xmx2g -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Duser.timezone=UTC -Dfile.encoding=UTF-8 --add-opens jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
3
+ toolchain.compiler.jvmargs =-Xmx2g -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Duser.timezone=UTC -Dfile.encoding=UTF-8
5
4
toolchain.javadoc.jvmargs =-Xmx2g -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Duser.timezone=UTC -Dfile.encoding=UTF-8
6
5
toolchain.launcher.jvmargs =-Xmx2g -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Duser.timezone=UTC -Dfile.encoding=UTF-8
7
6
Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ else {
137
137
options. compilerArgs << gradle. ext. javaVersions. main. release. toString()
138
138
} else {
139
139
options. release = gradle. ext. javaVersions. main. release. asInt()
140
+ // Needs add-opens because of https://github.com/gradle/gradle/issues/15538
141
+ options. forkOptions. jvmArgs. addAll( [" --add-opens" , " jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED" ] )
140
142
}
141
143
}
142
144
tasks. compileTestJava. configure {
@@ -147,6 +149,8 @@ else {
147
149
options. compilerArgs << gradle. ext. javaVersions. test. release. toString()
148
150
} else {
149
151
options. release = gradle. ext. javaVersions. test. release. asInt()
152
+ // Needs add-opens because of https://github.com/gradle/gradle/issues/15538
153
+ options. forkOptions. jvmArgs. addAll( [" --add-opens" , " jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED" ] )
150
154
}
151
155
}
152
156
You can’t perform that action at this time.
0 commit comments