avaje / avaje-inject

Dependency injection via APT (source code generation) ala "Server-Side Dagger DI"
https://avaje.io/inject
Apache License 2.0
227 stars 21 forks source link

Writes a file to signal inject's presence #634

Closed SentryMan closed 2 months ago

SentryMan commented 2 months ago

Currently, the only way for annotation processors to directly communicate with each other and maven plugins is by writing files and reading them.

Using Elements or Class.forName to detect other running processors is also unreliable.

This PR enhances the generator to write a marker file in target/avaje-processors.txt that other processors and tools can pick up.

relies on https://github.com/avaje/avaje-prisms/pull/69