From 84ab25e63ba095bf934d135a87aa4c2aaf9ad9bf Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 15 Jun 2021 12:21:51 +0530 Subject: [PATCH] gradle: workaround JDK 16 incompatibilities with KAPT Signed-off-by: Harsh Shandilya --- gradle.properties | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gradle.properties b/gradle.properties index e88c37fa..ef882e26 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,3 +3,12 @@ android.useAndroidX=true kotlin.mpp.enableGranularSourceSetsMetadata=true kotlin.native.enableDependencyPropagation=false kotlin.mpp.stability.nowarn=true +org.gradle.jvmargs=-Dfile.encoding=UTF-8 \ + --add-opens jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \ + --add-opens jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \ + --add-opens jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \ + --add-opens jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED \ + --add-opens jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED \ + --add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED \ + --add-opens jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \ + --add-opens jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED