Skip to content

Conversation

@adriangl
Copy link
Contributor

@adriangl adriangl commented Feb 29, 2020

PR's key points

The PR adds experimental support for incremental annotation processing compilation while using mini-processor

This is done making the annotation processor an Aggregating annotation 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 speed

Additional notes

You can find some examples of incremental annotation processors implementations here:

@adriangl adriangl added the feature New feature label Feb 29, 2020
@adriangl adriangl self-assigned this Mar 2, 2020
@adriangl adriangl marked this pull request as ready for review March 13, 2020 08:19
@adriangl adriangl changed the title [Draft] Add experimental support for incremental annotation processing in mini-processor Add experimental support for incremental annotation processing in mini-processor Mar 13, 2020
@adriangl adriangl merged commit 253cfdd into master Mar 13, 2020
@adriangl adriangl deleted the feature/incremental-compilation branch March 13, 2020 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants