-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support incremental compilation #473
Comments
Yeeeah! |
Any updates? :) |
umm sorry we haven't addressed 🙇 |
Any update on this? |
Dagger's issue: google/dagger#1120 |
PR: #556 |
Kotlin issue on Dagger: google/dagger#1283 |
Kotlin issue on Kotlin issue tracker: https://youtrack.jetbrains.com/issue/KT-23880 |
One trick is to create a thin Gradle module at top level and keep it kotlin-free. Although that will only contain the top-level |
@tasomaniac can you elaborate on how much time is saved with that approach? |
I'm currently experimenting this with 2 projects. They are both small and highly modularized. Incremental build on 1 line change went from 12-15 secs to 7-8 secs. Since numbers are so small, I wouldn't trust. In our big project, it is not easy to do this since the top module is heavy on Kotlin. In short, you get rid of 3 tasks: kaptGenerateStubs, kapt, kotlinCompile and javac becomes incremental. |
Theoretically, this makes a lot of sense to me. I just want some good metrics. Might be a useful suggestion I can give people when they ask about improving Android build times. (I work for Gradle and one of my primary missions is helping Android teams improve build perf.) Thanks for the idea! |
Thank you folks, let us know if there's something that is applicable to PermissionsDispatcher! |
Glad I could help @autonomousapps |
Gradle 4.7 introduced incremental annotation processing, or InCAP for short. Let's review if our use case can be applied here, so we can speed up project builds using this new incremental mechanism.
More info: https://docs.gradle.org/nightly/userguide/java_plugin.html#sec:incremental_annotation_processing
The text was updated successfully, but these errors were encountered: