Replies: 1 comment 6 replies
-
the type needs to be on the annotation processor class path so you will need to put the mapper in a separate module |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I'm Ronald, the creator of JobRunr, a distributed job processing framework that integrates with Micronaut.
One feature that we are unable to get working in Micronaut is support for our
@Recurring
annotation that allows you to create for example a CRON job. The problem is that the@Recurring
is inside our core lib and thus cannot depend on theExecutable
annotation of Micronaut which exposesprocessOnStartup
.From the docs, I thought this could be solved with a
TypedAnnotationMapper
:I think I have added everything correctly (see this branch) including the service definition in
META-INF/services/io.micronaut.inject.annotation.AnnotationMapper
.If I then consume the locally build
jobrunr-micronaut-feature
inside a demo project, enable annotation processing using our library and debug, I never hit any of the breakpoints and it looks like theAnnotationMapper
is not being executed.Is this a bug or our we doing something wrong? I think the latter to be honest 😂.
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions