123456789101112131415161718192021222324252627282930313233343536373839404142 |
- ## For more details on how to configure your build environment visit
- # http://www.gradle.org/docs/current/userguide/build_environment.html
- #
- # Specifies the JVM arguments used for the daemon process.
- # The setting is particularly useful for tweaking memory settings.
- # Default value: -Xmx1024m -XX:MaxPermSize=256m
- # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
- #
- # When configured, Gradle will run in incubating parallel mode.
- # This option should only be used with decoupled projects. More details, visit
- # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
- # org.gradle.parallel=true
- #Tue Jul 06 16:23:28 CST 2021
- android.enableAapt2=true
- android.enableJetifier=true
- android.injected.testOnly=false
- android.useAndroidX=true
- org.gradle.daemon=true
- org.gradle.configureondemand=true
- # 开启gradle缓存
- org.gradle.caching=true
- android.enableBuildCache=true
- org.gradle.parallel=true
- #加快gradle编译速度
- org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M" -XX:+UseParallelGC
- # 开启kotlin的增量和并行编译
- kotlin.incremental=true
- kotlin.incremental.java=true
- kotlin.incremental.js=true
- kotlin.caching.enabled=true
- # 开启kotlin并行编译
- kotlin.parallel.tasks.in.project=true
- # 优化kapt
- # 并行运行kapt1.2.60版本以上支持
- kapt.use.worker.api=true
- # 增量编译 kapt1.3.30版本以上支持
- kapt.incremental.apt=true
- # kapt avoiding 如果用kapt依赖的内容没有变化,会完全重用编译内容,省掉`app:kaptGenerateStubsDebugKotlin`的时间
- kapt.include.compile.classpath=false
|