Add experimental support for incremental annotation processing in mini-processor #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR's key points
The PR adds experimental support for incremental annotation processing compilation while using
mini-processorThis is done making the annotation processor an
Aggregatingannotation processor. You can read more about this in Gradle's official documentation here: https://docs.gradle.org/current/userguide/java_plugin.html#sec:incremental_annotation_processing.You can see some implementations of such annotation processors in the links provided in
MiniProcessor.I also rewrote some code from the processors to make it a bit easier to understand
How to review this PR?
Basically test if builds are faster with the version in this branch and the tips mentioned in the
README.md. I left the PR as a Draft until we can verify that this indeed improves build speedAdditional notes
You can find some examples of incremental annotation processors implementations here: