gradle: limit daemon memory to 2G

This commit is contained in:
Harsh Shandilya 2022-06-24 17:08:06 +05:30
parent acf1fca1b7
commit 9a025f589a
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -69,7 +69,7 @@ systemProp.org.gradle.internal.http.socketTimeout=500000
# Add opens for KAPT
# https://youtrack.jetbrains.com/issue/KT-45545#focus=Comments-27-4862682.0-0
org.gradle.jvmargs=-Dfile.encoding=UTF-8 \
org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 \
--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED \