Skip to content

Better support for compiler plugins #15

@tschuchortdev

Description

@tschuchortdev

It should already be possible to test compiler plugins by adding their path to the pluginClasspath. However, this is kinda annoying as you have to find that path first (which may or may not necessitate writing a Jar with the service registrations manually) and the ComponentRegistrars will be instantiated by the compiler's service locator, so we can't pass any arguments to it or use anonymous classes in tests. Since we are already doing all this with the custom KaptComponentRegistrar, I figure we could just execute a list of given ComponentRegistrars there. Care has to be taken to ensure that only the right ComponentRegistrars are executed during the right compilation stages (maybe use separate ComponentRegistrars or a thread-local flag if nothing else works).

Any thoughts on this?

@Foso

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions