Skip to content

Commit

Permalink
[Java] Workaround for gradle/gradle#15538.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyazelenko committed Dec 15, 2020
1 parent 5451bda commit 31bcab7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Expand Up @@ -88,6 +88,9 @@ subprojects {
tasks.withType(JavaCompile) {
if (buildJavaVersion >= 9) {
options.compilerArgs.addAll(['--add-exports', 'jdk.unsupported/sun.misc=ALL-UNNAMED'])
// -- Workaround for https://github.com/gradle/gradle/issues/15538
options.forkOptions.jvmArgs.addAll( ['--add-opens', 'jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED'] )
// --
}
else {
options.fork = true
Expand Down

0 comments on commit 31bcab7

Please sign in to comment.