Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails 2 vs Grails 3

Tags:

grails

I'm rather new to grails and I'm about to start a new grails project. I'm very confused with what version to go with based on the tools not being ready to support the newest version. I've read version 3 was a complete rewrite from ground up which my gut says should be the version to go with considering the project is brand new, but I'm discovering none of the tools are ready for version 3.

I was successfully able to get version 3 up with intellij with out grails support and the same goes for ggts.

With that being said, I don't know how to run the app in ggts since grails-runapp doesn't work

with ggts, I used the following tutorial https://tedvinke.wordpress.com/2015/04/10/grails-3-released-installing-gradle-and-groovy-2-4-support-in-eclipseggts/ but I've been able to figure out how to get the app to run. Does anybody know how to do this?

My questions are

  1. How do I run a Grails 3 app in GGTS.
  2. Is it recommended to use Grails 3 at this point or should I use Grails 2
  3. If you use Grails 3, what is the recommended IDE?

With Intellij I had to run it by going to the grails-app/init project run main. Is this the correct way to do it?

like image 242
Code Junkie Avatar asked Feb 10 '23 16:02

Code Junkie


1 Answers

As of Grails 3 you don't need a special IDE To run Grails 3 application. all you need to do is to right-click on the Application class and execute to start your Grails application. To read more about IDE integration https://grails.github.io/grails-doc/latest/guide/introduction.html

Currently, not all plugins are upgraded to Grails 3. So if your project depends on some plugins that are not already upgraded this will be an issue. For example spring security is not upgraded yet, but there is a work around to use it.https://groups.google.com/forum/#!searchin/grails-dev-discuss/spring$20security/grails-dev-discuss/jOF0jw_BiCs/tOxd0NZpaxkJ

Finally, both Intellij community edition and GGTS supports Grails3. But if you want special grails features like GSP syntax highlighting use GGTS or IDEA Ultimate edition.

like image 63
Feras Odeh Avatar answered Mar 04 '23 01:03

Feras Odeh