Issue importing micronaut 3 library into micronaut 4 application #9758
Unanswered
pedrolamarao
asked this question in
Q&A
Replies: 1 comment 3 replies
-
The library needs to be recompiled with v4 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all! We have a micronaut 3 library providing bean factories to ease integrating our products into micronaut applications. Micronaut 3 applications can inject beans provided by our bean factories just fine. Micronaut 4 application cannot, throwing:
Caused by: io.micronaut.context.exceptions.NoSuchBeanException: No bean of type [library.Foo] exists. Make sure the bean is not disabled by bean requirements (enable trace logging for 'io.micronaut.context.condition' to check) and if the bean is enabled then ensure the class is declared a bean and annotation processing is enabled (for Java and Kotlin the 'micronaut-inject-java' dependency should be configured as an annotation processor).
We have studied the migration guide and compatibility break documentation to no avail.
The following test application demonstrates our troubles. While :application3 endpoints complete sucessfully, :application4 endpoints all fail as above. Are we missing configuration? Please advise!
https://github.com/pedrolamarao/micronaut-library-issue
Beta Was this translation helpful? Give feedback.
All reactions