In this video, Jeff Scott Brown, the founder of the Grails framework, gives a comprehensive overview of the Grails 3 support in IntelliJ IDEA (both Community and Ultimate.)
5:19 Grails 2 vs Grails 3
16:06 Demo of the Grails 3 support in IntelliJ IDEA Community Edition
31:49 Intro into Grails 3 and IntelliJ IDEA Ultimate
33:10 Demo of the Grails 3 support in IntelliJ IDEA Ultimate
47:09 5 reasons to use IntelliJ IDEA for Grails
Q & A
Q: Can you recommend any good books on Grails 3 development?
- The Definitive Guide to Grails 2
- The Definitive Guide to Grails 3 is in work and hopefully will be published soon
- Grails 3: A Practical Guide to Application Development is in work but available for early access
A: Does IntelliJ IDEA offer coding assistance for the GORM methods, such as .list(), .where(), .save(), etc?
A: GORM, among other Grails concepts, is fully supported by IntelliJ IDEA Ultimate. Community Edition doesn’t include this. If you want this support in Community Edition, make sure your classes implement the corresponding traits explicitly.
Q: How to enable auto-reload in IntelliJ IDEA?
A: IntelliJ IDEA Ultimate supports auto-reload out of the box. In Community Edition, you have to manually add “-noverify“ to the VM options (to disable the bytecode verifier) in your Run Configuration.
Q: What is the difference between GGTS and IntelliJ IDEA?
A: Currently the biggest difference is the dedicated support for Grails 3. AFAIK, Eclipse (GGTS) doesn’t support Grails 3.
Q: How do I deploy a Grails 3 application to GlassFish?
A: Use the Grails command “grails war”, and then deploy it to GlassFish as a regular WAR file.
Q: How to use Grails 3 along with GWT?
A: If we’re talking about simultaneously working with two separate applications in one IDE, then the best way to do that would be to use a multiple project Gradle build. If it’s about using GWT on top of Grails, check our the GWT Grails plugin.
Q: Recommend a quick tutorial on GORM for a personal with SQL background
A: Check out the official GORM website.
Q: Where can I get any help in migrating a Grails 2 project to Grails 3?
A: Check out the official documentation. For professional help, contact the Grails team
Q: How is GORM MongoDB matured to use in production?
A: It’s really mature, but if you have any specific concerns, you can always contact the Grails team.
Q: Does IntelliJ IDEA offer diagrams for Grails?
A: Yes, IntelliJ IDEA Ultimate offers diagrams for domain classes. To access diagrams, open the domain class, and switch to the Diagram tab in the bottom of the editor.
Q: How can I use multiple datasources with Grails 3?
A: Check out the official documentation.
For more details about IntelliJ IDEA, check out its official website: https://www.jetbrains.com/idea/