Conversation
In Micronaut 5, DefaultEnvironment is now sealed and cannot be subclassed. This replaces the previous approach of extending DefaultEnvironment with the PropertySourcesLocator API, which wraps Spring's property sources as Micronaut PropertySource instances. This follows the same pattern used by Micronaut's bootstrap implementation.
- Update generic types to match new API signatures: - BeanDefinitionReference<?> -> BeanDefinitionReference<Object> - BeanDefinition<?> -> BeanDefinition<Object> - Fix JSpecify @nonnull annotation placement for qualified type names - Add error handling for beans with incompatible dependencies (temporary workaround for micronaut-views 5.x compiled against Micronaut 4)
- micronaut: 5.0.0-M6 -> 5.0.0-M9 - micronaut-sql: 7.0.0-M4 -> 7.0.0-M5 - micronaut-cache: 6.0.0-M1 -> 6.0.0-M2
Micronaut 5 uses Jackson 3 which moved from com.fasterxml.jackson to tools.jackson package.
The micronautContext field type changed from DefaultBeanContext to ApplicationContext for Micronaut 5 compatibility (DefaultEnvironment is now sealed and requires using the public ApplicationContext API).
- Update micronaut-views version from 5.9.0 to 6.0.0-M1 - Remove ViewsFilter dependency from ModelAndViewServerFilter (class was removed in micronaut-views 6.0.x), use ServerFilterPhase.RENDERING.order() directly which is equivalent to the old ViewsFilter.getOrder() - Check isPresent() and isEnabled() before calling load() on BeanDefinitionReference.
|
lissam1
approved these changes
Mar 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




No description provided.