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
@Recurringannotation that allows you to create for example a CRON job. The problem is that the@Recurringis inside our core lib and thus cannot depend on theExecutableannotation 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-featureinside a demo project, enable annotation processing using our library and debug, I never hit any of the breakpoints and it looks like theAnnotationMapperis 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