Giriş
Açıklaması şöyle
Gradle provides several options that make it easy to configure the Java process that will be used to execute your build. While it’s possible to configure these in your local environment via GRADLE_OPTS or JAVA_OPTS, it is useful to be able to store certain settings like JVM memory configuration and Java home location in version control so that an entire team can work with a consistent environment. To do so, place these settings into a gradle.properties file committed to your version control system.
JVM Parametreleri
Açıklaması şöyle
Specifies the JVM arguments used for the Gradle Daemon. The setting is particularly useful for configuring JVM memory settings for build performance. This does not affect the JVM settings for the Gradle client VM. The default is -Xmx512m "-XX:MaxMetaspaceSize=256m".
Örnek
"Check the JVM memory arguments defined for the gradle process"
diye bir hata alıyordum. gradle.properties dosyasına şu satırı ekledim
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m-XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
JDK 17 için şöyle yaparız
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=1024m-XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
Hiç yorum yok:
Yorum Gönder