|
1 | 1 | # Project-wide Gradle settings.
|
2 |
| -# IDE (e.g. Android Studio) users: |
3 |
| -# Gradle settings configured through the IDE *will override* |
4 |
| -# any settings specified in this file. |
5 |
| -# For more details on how to configure your build environment visit |
6 |
| -# http://www.gradle.org/docs/current/userguide/build_environment.html |
7 |
| -# Specifies the JVM arguments used for the daemon process. |
8 |
| -# The setting is particularly useful for tweaking memory settings. |
9 |
| -org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 |
| 2 | +# https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory |
| 3 | +org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true |
| 4 | + |
| 5 | +# https://docs.gradle.org/current/userguide/build_cache.html |
| 6 | +org.gradle.caching=true |
| 7 | + |
| 8 | +# When configured, Gradle will run in incubating parallel mode. |
| 9 | +# This option should only be used with decoupled projects. More details, visit |
| 10 | +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects |
| 11 | +org.gradle.parallel=true |
| 12 | + |
| 13 | +# Configure only necessary projects, useful with multimodule projects |
| 14 | +org.gradle.configureondemand=true |
10 | 15 | # When configured, Gradle will run in incubating parallel mode.
|
11 | 16 | # This option should only be used with decoupled projects. More details, visit
|
12 | 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
0 commit comments