Skip to content

Instantly share code, notes, and snippets.

@pchmielowski
Created May 14, 2019 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pchmielowski/a8e40efb0cff683357453a121b6bcd5a to your computer and use it in GitHub Desktop.
Save pchmielowski/a8e40efb0cff683357453a121b6bcd5a to your computer and use it in GitHub Desktop.
Gradle build speed optimizations

gradle.properties

org.gradle.jvmargs=-Xmx4048m -XX:MaxPermSize=1024m
org.gradle.parallel=true

kotlin.parallel.tasks.in.project=true

kapt.include.compile.classpath=false
kapt.use.worker.api=true
kapt.incremental.apt=true

other

  1. Make sure Fabric Crashlitics is disabled in debug mode.
  2. Use newest versions of Gradle and Gradle Android Plugin
  3. Use newest versions of libraries which use annotation processing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment