gradle.properties 786 B

1234567891011121314151617181920212223242526
  1. # Automatically convert third-party libraries to use AndroidX
  2. android.useAndroidX=true
  3. # Kotlin code style for this project: "official" or "obsolete":
  4. android.enableJetifier=true
  5. kotlin.code.style=official
  6. #开启gradle并行编译,开启daemon,调整jvm内存大小
  7. org.gradle.daemon=true
  8. org.gradle.configureondemand=true
  9. org.gradle.parallel=true
  10. org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
  11. #开启gradle缓存
  12. org.gradle.caching=true
  13. android.enableBuildCache=true
  14. #开启kotlin的增量和并行编译
  15. kotlin.incremental=true
  16. kotlin.incremental.java=true
  17. kotlin.incremental.js=true
  18. kotlin.caching.enabled=true
  19. kotlin.parallel.tasks.in.project=true
  20. #优化kapt
  21. kapt.use.worker.api=true
  22. kapt.incremental.apt=true
  23. kapt.include.compile.classpath=false