Skip to content

Instantly share code, notes, and snippets.

@gaplo917
Created August 18, 2022 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaplo917/126cebd7d40b471378e674aae9da3a71 to your computer and use it in GitHub Desktop.
Save gaplo917/126cebd7d40b471378e674aae9da3a71 to your computer and use it in GitHub Desktop.
Gradle >= 7.3 properties
# greatly reduce build time
# https://docs.gradle.org/current/userguide/build_cache.html
org.gradle.caching=true
# potentially increase build speed if the gradle task can be parallel
# https://docs.gradle.org/current/userguide/performance.html#parallel_execution
org.gradle.parallel=true
# watch file system
# https://blog.gradle.org/introducing-file-system-watching
org.gradle.vfs.watch=true
# 1GB heap, use latest JDK 17 ZGC, Gradle >= 7.3 only
# install jdk 17: brew install openjdk@17
# check jdk version: ./gradlew --version
# if default jdk is not 17, you can run manually: ./gradlew -Dorg.gradle.java.home=/opt/homebrew/opt/openjdk@17
org.gradle.jvmargs=-Xmx1g -XX:+UseZGC -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment