gradle.properties 1.6 KB

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