As a software developer, it is common to stick to a version of a framework for a while, and get used to working with it. Thus, when it’s time for a version upgrade, it can be somewhat of a pain in the neck.
In my case, all the previous projects I had were on Grails 2.X. and when we decided to move on to Grails 3, we faced a couple issues regarding incompatibilities and differences in usage.
For instance, one big difference was start using Gradle.
Grails 3 runs the same commands of previous version but is recommended to use Gradle for building the application.
In the past grails use IVY or Maven to get his dependencies, and the compile code itself, now Gradle handle all these tasks in a more effective way.
- Better integration with configuration files of the application
- New repository for dependencies. Now use Bintray
In my experience I found you only have to take care of a few points:
- Applications are run now with bootRun or running the Application.groovy initializer class due to the inclusion of Spring Boot on its core.
- Idea IDE (our choice) allow having 2 project with different grails version (I test it with Grails 2.4 and Grails 3.1) and with some reconfiguration works fine
- Idea IDE includes the gradle tasks but if you need to do more complex configurations the Script parameters section in Run/Debug can give us access to them and we can add some parameters. For example adding “-x test” in the script so we can exclude test from running.
- As on previous versions, plugins instalation are explain on each plugin in Bintray page.
- Lot of plugins like GORM-MongoDb or GET are already included on Grails 3
If you need more information you can visit the Grails official page.
Hope it helps!!!
STARTING WITH GRAILS3 POSTS