Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move from Grails 3 to Spring-Boot

Our project uses the Grails stack with Grails 3.1.5, GORM and Groovy. We are trying to move away from Grails and just use Spring-Boot. We have not settled yet if we want to get rid of GORM and Groovy as well.

Our reasons are:

  • a lot of trouble in upgrading to Grails 3.2.2
  • lack of up-to-date plugins
  • bugs in grails and it's plugins
  • no community
  • bad documentation
  • mostly figuring out the magic of Grails takes up more time than writing everything on your own

Does anyone have any experience or suggestions on how to deal with a migration like this?

Thanks :)

like image 666
themenace Avatar asked Feb 20 '18 12:02

themenace


People also ask

Is Grails a spring boot?

Grails (more precisely it's latest major version) is a framework built on top of the Spring Boot project and uses the Apache Groovy language to develop web apps. It's inspired by the Rails Framework for Ruby and is built around the convention-over-configuration philosophy which allows reducing boilerplate code.

What is better Grails or spring?

When assessing the two solutions, reviewers found Grails easier to use, set up, and do business with overall. However, reviewers preferred the ease of administration with Spring Framework. Reviewers felt that Spring Framework meets the needs of their business better than Grails.

Is Grails built on Spring?

The Grails framework is built on top of Spring Boot and leverages Spring Boot's time-saving features, such as Spring-powered dependency injection.


1 Answers

In any case, even though you seem to have written your question in a way that is likely to create more discussion than help you out, here's my 2 cents, FWIW:

You're already in a spring boot application! You can leave all the annoying grails-y and groovy-y things behind and code your app in java, with all the boot-y annotations you want.

This is not to be facetious! It is a good methodology to slowly extract your grails artifacts and replace them, with spring-boot components, without having to break your app.

So here, from a non-existing community member of grails, good luck.

UPDATE: After answering your question, I thought back to all the times a grails developer answered a question for me, every time I spent hours through the rabbit hole of the grails web sites, reading mind-blowing documentation and tutorials, and I thought I owed it to all these people doing this for FREE, to come back and defend them.

The grails and groovy communities are one of the friendliest I have ever come accross. You should bother to go to a conference or visit their slack community.

Some links to grails' outstanding documentation sites: http://grails.org/documentation.html

Grails guides: http://guides.grails.org/

Either you haven't looked or you have to tell me what your standard is.

like image 61
Luis Muñiz Avatar answered Oct 23 '22 03:10

Luis Muñiz