Support Gradle Incremental Annotation Processing
See original GitHub issueIt would be nice if crumb would support incremental annotation processing released in Gradle 4.7. Given that crumb uses resources, it doesn’t look like that’s going to work. See https://docs.gradle.org/4.7/userguide/java_plugin.html#sec:incremental_annotation_processing
A similar project I work on solves a similar problem (with a million times less flexibility). The library TLDR is this:
- The composite equivalent of
CrumbProducer
generates a class with an annotation on it. - The composite equivalent of
CrumbConsumer
looks for the generated classes annotated by the step above
I think an approach similar to this would allow the crumb annotation processors to be incremental.
This would essentially change the implementation details within crumb to use classes (again, that can be proguarded out) instead of resources.
I’d be willing to help/do the work for this if it’s a direction that the library maintainers deem appropriate.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9
Top Results From Across the Web
What's new in Gradle 5.0
The incremental compiler in Gradle 5.0 supports incremental annotation processing, significantly increasing the effectiveness of incremental compilation ...
Read more >Support Gradle incremental annotation processing [112110217]
[WARN] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: androidx.room.RoomProcessor ( ...
Read more >How to make my own annotation processor incremental?
To make your annotation processor incremental you must declare it in META-INF in incremental.annotation.processors file:
Read more >Support Gradle Incremental Processing · Issue #804 - GitHub
Gradle 4.7+ has a new feature to let annotation processors run incrementally. In order to make that work, Immutables has to tell Gradle...
Read more >Incremental processing | Kotlin
Incremental processing is a processing technique that avoids re-processing of sources as much as possible. The primary goal of incremental ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Nice. I can take a look at this sooooon-ish
On Mon, Mar 25, 2019 at 6:40 AM Jay Newstrom notifications@github.com wrote:
Yep that’s the one! Let’s touch base again once that’s available