Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write SPIs to META-INF/generated-services so that they can be merged later via avaje-spi-service #616

Merged
merged 6 commits into from
Jun 23, 2024

Conversation

SentryMan
Copy link
Collaborator

@SentryMan SentryMan commented Jun 20, 2024

Now relies on spi-service to write spis

relies on avaje/avaje-spi-service#25


Note: This ultimately is required because with the change to a common service interface of InjectExtension we now more likely get multiple services registering for the same InjectExtension api interface - so those need to be merged into the same META-INF/services file via avaje-spi-service.

@@ -67,7 +68,7 @@ void testGeneration() throws Exception {
List.of("--release=" + Integer.getInteger("java.specification.version")),
null,
files);
task.setProcessors(Arrays.asList(new InjectProcessor()));
task.setProcessors(List.of(new InjectProcessor(), new ServiceProcessor()));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rbygrave you can probably use your IDE here to debug and understand what's going on if it's still not making intuitive sense.

@rbygrave rbygrave added this to the 10.0 milestone Jun 23, 2024
@rbygrave rbygrave changed the title Write SPIs to a different folder Write SPIs to META-INF/generated-services so that they can be merged later via avaje-spi-service Jun 23, 2024
@rbygrave rbygrave merged commit 53e0fce into avaje:master Jun 23, 2024
7 checks passed
@SentryMan SentryMan deleted the spi-changes branch June 24, 2024 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants