-
Notifications
You must be signed in to change notification settings - Fork 302
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
Add support for incremental annotation processing with Gradle 4.7+ #620
Comments
Thanks. Already looked into this a while ago and the issue is that our processor does not really fit either mode. In addition, for relations multiple The ObjectBox processor also can't use "aggregating" mode because it needs access to parameter names (would require a compiler flag with that mode). Side note: when using the Android Plugin it is still unclear (last time I checked) how to do incremental annotation processing anyhow. |
I'm afraid I can't help, I'm no gradle wizard. |
News: with Android Gradle Plugin 3.3.0 incremental annotation processor support is available for Java-only projects. But not for Kotlin or mixed Kotlin+Java projects. Also, there is a note that it does not work with Gradle 5.1 and higher. So: nothing to do here for now. |
Can this be unblocked with the release of Android Gradle Plugin 3.5.0? "Additionally, KAPT 1.3.30 and higher also support incremental annotation processors, which you can enable by including kapt.incremental.apt=true in your gradle.properties file." |
@dbriggsDFleet Sure, but the biggest, unresolved issues are still those described in #620 (comment). |
This is a must. |
We just released To turn it on set
This configuration works for both Android Java and Android Kotlin projects. We appreciate your feedback on this feature. If all goes well, incremental annotation processing will be on by default in a future release. |
Great, will try it out asap! |
If you see improved build times, we'd be very happy if you could share some numbers from your project (e.g. build times before and after). |
|
|
With |
@emartynov can you please open a new issue for this? Thanks |
@emartynov Thanks! I guess you did not get around creating an issue for this (couldn't find one)? Anyhow, this is already fixed internally and will ship with the next update. |
Hi people, you're early starters. You're right I didn't. Thank you for the update! |
Gradle 4.7 added support for incremental annotation processing, docs here.
For additional help, follow up with the gradle dedicated issue.
The text was updated successfully, but these errors were encountered: