添加 config/gradle.properties
Some checks failed
Build Gradle Dragonwell Image / build (push) Has been cancelled

This commit is contained in:
2025-09-11 09:39:02 +08:00
parent cdedd3e471
commit 9cfe6787f3

28
config/gradle.properties Normal file
View File

@@ -0,0 +1,28 @@
# 并行构建 - 利用多核CPU
org.gradle.parallel=true
# 构建缓存 - 加速重复构建
org.gradle.caching=true
# 按需配置 - 只配置需要的项目
org.gradle.configureondemand=true
# JVM参数优化 (针对Dragonwell优化)
org.gradle.jvmargs=-Xmx2g -XX:+UseContainerSupport -XX:MaxRAMPercentage=75.0 -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2
# Gradle守护进程
org.gradle.daemon=true
# 文件系统监控 - 增量构建
org.gradle.vfs.watch=true
# Kotlin编译器优化
kotlin.compiler.execution.strategy=in-process
kotlin.incremental=true
# 网络超时设置
systemProp.org.gradle.internal.http.connectionTimeout=60000
systemProp.org.gradle.internal.http.socketTimeout=60000
# 禁用不必要的功能
org.gradle.welcome=never