Grails 7 Scope - Remove Micronaut Context #13517
Replies: 10 comments 52 replies
-
Removing Micronaut Context as the parent context of the Spring Boot context means you would not longer be able to:
|
Beta Was this translation helpful? Give feedback.
-
If Micronaut was to be come a plugin, so it became an optional plugin, I would see that as a big plus. |
Beta Was this translation helpful? Give feedback.
-
My biggest issue with Micronaut in Grails is the fact thait's not clear WHY Micronaut is a worth addition for the framework (here is the link of the current user guide: https://docs.grails.org/6.2.0/guide/single.html ) on the main documentation. This is the main problem: for the newbie (and I'm not a newbie, I'm a Grails user since the beginning and even wrote a bookt about it "Falando de Grails") it's not clear the bennefits of Micronaut. And I must confess, even for me is not clear. One of the nicest features we could have was a faster startup of the application. And the fact is that even today we still don't have this. |
Beta Was this translation helpful? Give feedback.
-
There is a work-in-progress PR currently updating to Micronaut 4.5.3 #13545 |
Beta Was this translation helpful? Give feedback.
-
I think it would be incredibly difficult for someone in a project (like ours!) that was built with micronaut context baked in to be able to take a major update that removed it without a clear pathway for upgrade, be it a plugin or otherwise. We too have felt much of the pain of the multiple layers of application context and I still don't fully understand it, but that would make an upgrade even harder as we've built a great deal of working code on top of it. |
Beta Was this translation helpful? Give feedback.
-
I think this change warrants more investigation and testing than we have time for, before releasing Grails 7. |
Beta Was this translation helpful? Give feedback.
-
@rainboyan I am secretly praying that you can contribute to Grails removing Micronaut since you have done it in Grace. I know, please don't hate me, we need your help. |
Beta Was this translation helpful? Give feedback.
-
@codeconsole @matrei @jamesfredley All I did was make Grails look normal and make it a true Spring Boot application.
In fact, it is not. It's not the Spring Boot version that lags behind Grails, it's the whole design principle. Grails should take advantage of Groovy and enhance Spring Boot as a powerful option, rather than a replacement to compete with. GSP can be used as a view template engine in Spring Boot, Grails Controllers can be used with Spring MVC, GORM can coexist with Spring Data, etc. Grails' CLI and GSP, Plugins are its most important features, should be enhanced, not stagnant. Some of the issues I've submitted two year ago still worth figuring out. These issues lead to deeper thinking. graceframework/grace-framework@3c20c92 |
Beta Was this translation helpful? Give feedback.
-
I would like to point out that by removing it, there is a path to getting live reload back and better with HotSwapAgent |
Beta Was this translation helpful? Give feedback.
-
Based on the Grails Weekly Meeting today, Graeme pointed out the best way forward for people using Micronaut with Grails is to use the Micronaut Spring Boot Starter. This will be the ideal pathway for people wanting to use Micronaut in 7.0 https://micronaut-projects.github.io/micronaut-spring/latest/guide/#springBootStarter |
Beta Was this translation helpful? Give feedback.
-
The grails team have been discussing whether or not it is worth keeping the Micronaut Context as the Parent Context in Grails (since Grail 4.x). This has caused issues in development regarding configuration loading , among others. It also has led to preventions on usages of reloaders like the hotswap-agent (those may be resolvable however). The thought is to let Grails be based on spring and not mix the other framework in. That being said micronaut can still be used within the project in a more standalone manner.
76 votes ·
Beta Was this translation helpful? Give feedback.
All reactions