Skip to content

Instantly share code, notes, and snippets.

@kloudsamurai
Created December 22, 2021 03:01
Show Gist options
  • Save kloudsamurai/152ac4851dadf524fabee12f010c4c3a to your computer and use it in GitHub Desktop.
Save kloudsamurai/152ac4851dadf524fabee12f010c4c3a to your computer and use it in GitHub Desktop.
gradle.properties for high memory allocation
#Enable daemon
org.gradle.daemon=true
# Try and findout the best heap size for your project build.
org.gradle.jvmargs=-Xmx18G -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options=-Xmx18G
# Modularise your project and enable parallel build
org.gradle.parallel=true
# Enable configure on demand.
org.gradle.configureondemand=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment