-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgradle.properties
More file actions
25 lines (18 loc) · 993 Bytes
/
gradle.properties
File metadata and controls
25 lines (18 loc) · 993 Bytes
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
# Use JDK 22 — Kotlin 2.1.0 crashes with Java 25 (version parsing bug)
org.gradle.java.home=C:\\Program Files\\Java\\jdk-22
android.useAndroidX=true
kotlin.code.style=official
android.nonTransitiveRClass=true
# ── Build Speed Optimizations ──────────────────────────────────────────────
# Give Gradle daemon 4 GB RAM — prevents OOM heap crashes (.hprof dumps)
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# Run independent tasks in parallel (uses all CPU cores)
org.gradle.parallel=true
# Keep the Gradle daemon alive between builds (much faster incremental builds)
org.gradle.daemon=true
# Cache build outputs — unchanged code is NOT recompiled
org.gradle.caching=true
# Pre-calculate the task dependency graph concurrently
org.gradle.configureondemand=true
# Kotlin compile daemon memory
kotlin.daemon.jvm.options=-Xmx2g