Amend class dependencies for recompilation

已回答

Hi

I'm developing an annotation processor and an IDEA plugin to add IDE support for these annotations. There are instances, where the are indirect dependencies that should trigger recompiling some code, for example:

@Configuration(mount={MyClass.class})
class MyConfiguration {}

In this example, when MyClass changes, MyConfiguration should be recompiled (thus regenerating the code), because the structure of MyClass directly impacts the way the code for MyConfiguration will be generated.

Can anybody give me a pointer to where to hook in to announce such "extended" dependencies to the compiler (if it's possible at all)?

0

Please see these links:

- https://youtrack.jetbrains.com/issue/IDEA-190622  if dependency analysis shows that some annotation-processor-generated source files are affected, then the whole module should be recompiled, so that all necessary files are re-generated. This approach delivers correctness, but suffers from very low precision

- https://youtrack.jetbrains.com/issue/IDEA-179014

0

请先登录再写评论。