-
-
Notifications
You must be signed in to change notification settings - Fork 396
Expand file tree
/
Copy pathgradle.properties
More file actions
41 lines (36 loc) · 1.91 KB
/
Copy pathgradle.properties
File metadata and controls
41 lines (36 loc) · 1.91 KB
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
# Project-wide Gradle settings.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# JVM arguments for the Gradle daemon.
# 64GB RAM machine. G1GC (JDK 21 default) gives shorter, more predictable
# pauses than ParallelGC on the 12g heap — important for incremental builds
# that create many short-lived objects. MetaspaceSize 2g avoids frequent GCs
# from heavy class loading (KMP 3 source sets + KSP2 + Compose compiler).
org.gradle.jvmargs=-Xmx12g -XX:MaxMetaspaceSize=2g -Dfile.encoding=UTF-8 -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError
# Run Gradle in parallel mode (decoupled projects).
org.gradle.parallel=true
# Keep the daemon alive between builds (avoids JVM warm-up cost).
org.gradle.daemon=true
# Enable local build cache — reuses task outputs across invocations.
org.gradle.caching=true
# Parallel sync for Gradle 9.4+ (IDE only, no effect on CLI builds).
org.gradle.tooling.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with the app"s APK
android.useAndroidX=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
android.nonTransitiveRClass=true
android.uniquePackageNames=false
android.dependency.useConstraints=false
android.r8.strictFullModeForKeepRules=false
# Kotlin compile daemon memory (Kotlin 2.x uses a separate daemon).
# 6g suits KMP (commonMain + androidMain + iosMain) + KSP + Compose compiler.
kotlin.daemon.jvmargs=-Xmx6g
# KSP2 — default in KSP 2.x, set explicitly to opt in to the faster allocator-based path.
ksp.useKSP2=true
ksp.incremental=false
# Promote non-default Apple platform libraries (AVFoundation, CoreMedia, etc.)
# to the shared iosMain source set via cinterop commonization.
kotlin.mpp.enableCInteropCommonization=true
android.sync.suppressAgpWarnings=GENERIC