-
Notifications
You must be signed in to change notification settings - Fork 3
/
gradle.properties
49 lines (35 loc) · 1.15 KB
/
gradle.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
##Kotlin
#kotlin.code.style=official
#kotlin.daemon.jvmargs=-Xmx2048M
#
##Gradle
#org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8
#
##Android
#android.nonTransitiveRClass=true
#android.useAndroidX=true
# Kotlin
kotlin.code.style=official
kotlin.daemon.jvmargs=-Xmx4096M
# Gradle JVM Arguments
# Allocate 16GB of RAM to Gradle (adjustable, but 16GB is usually more than enough)
org.gradle.jvmargs=-Xmx16g -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC
# Enable parallel builds to utilize multiple cores
org.gradle.parallel=true
# Use all available cores for Gradle workers
org.gradle.workers.max=16
# Enable Gradle build caching
org.gradle.caching=true
# Android
android.nonTransitiveRClass=true
android.useAndroidX=true
# Enable Configuration on Demand (optional for multi-module projects)
org.gradle.configureondemand=true
# Enable incremental annotation processing
kapt.incremental.apt=true
# Enable Kotlin incremental compilation
kotlin.incremental=true
# Disabling Jetifier if not needed (fully migrated to AndroidX)
android.enableJetifier=false
kotlin.native.disableCompilerDaemon = true
ksp.incremental = false