Browse Source

Merge pull request #12190 from nextcloud/fix/ci-failing-due-to-not-enough-memory

Fix GradleProperties for CI/CD
Andy Scherzinger 1 year ago
parent
commit
dc3a833827
1 changed files with 7 additions and 2 deletions
  1. 7 2
      gradle.properties

+ 7 - 2
gradle.properties

@@ -9,5 +9,10 @@ android.nonTransitiveRClass=false
 android.nonFinalResIds=false
 #android.debug.obsoleteApi=true
 
-# Minimum max heap space to get reliable builds
-org.gradle.jvmargs=-Xmx1g
+
+# JVM arguments to optimize heap usage, enable heap dump on out-of-memory errors, and set the file encoding
+org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+kotlin.daemon.jvmargs=-Xmx4096m
+org.gradle.caching=true
+org.gradle.parallel=true
+org.gradle.configureondemand=true