Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Incremental Annotation Processor not supported #193

Open
doniwinata0309 opened this issue Nov 28, 2019 · 1 comment
Open

Incremental Annotation Processor not supported #193

doniwinata0309 opened this issue Nov 28, 2019 · 1 comment

Comments

@doniwinata0309
Copy link

Hi, any plan to support incremental annotation processor ?
I am checking from warning and stag does not support incremental annotation processor.
Thanks

@anthonycr
Copy link
Contributor

anthonycr commented Dec 2, 2019

I think in theory, stag should be able to be made into an "aggregating" processor, as it generates type adapters for annotated types and then aggregates them into a single factory. However, I think some refactoring may need to be done first, as currently we are reading from resources during the code generation, which is prohibited by the incremental AP spec (https://github.com/vimeo/stag-java/blob/v2.6.0/stag-library-compiler/src/main/java/com/vimeo/stag/processor/utils/KnownTypeAdapterFactoriesUtils.java#L106). It's been a while since I've worked on this so I'm not sure if there's another way to do what we are doing with resources.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants