Created
October 22, 2025 11:55
-
-
Save nsmirosh/da6b60e69c784ad1d63b0485e381d60c to your computer and use it in GitHub Desktop.
Gradle performance improvement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This should be enabed by default - but just in case | |
| org.gradle.daemon=true | |
| # Most projects consist of multiple subprojects, some of which are independent. | |
| # By default, Gradle runs only one task at a time - this removes this restriction. | |
| org.gradle.parallel=true | |
| # Enables incubating configuration-on-demand, | |
| # where Gradle will attempt to configure only necessary projects. | |
| org.gradle.configureondemand=true | |
| # This one you can play around with depending on your processor and tasks. | |
| # Usually you don't need to configure it. | |
| org.gradle.workers.max=12 | |
| # Set Gradle daemon heap (I have 64 GB, so I can afford 10 GB) | |
| # 1 GB Gradle metaspace (loaded classes, method names, reflection data) | |
| # 3 GB for Kotlin Compiler daemon | |
| # Configure this according to your own RAM | |
| org.gradle.jvmargs=-Xmx10g -XX:MaxMetaspaceSize=1024m -Dkotlin.daemon.jvm.options="-Xmx3g" -Dfile.encoding=UTF-8 | |
| # By default, the build cache is not enabled. | |
| # With this setting Gradle will try to reuse outputs from previous builds for all builds | |
| org.gradle.caching=true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment