Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails application is not found after updating to IntelliJ IDEA Ultimate 2016.2

I have updated my IntelliJ IDEA Ultimate to the 2016.2 version.

I had a Grails 3 project and now when I open the IDE I get the following error when trying to run my project:

Error running Grails: My_Project: Grails application is not found 

I can still open the terminal and run the project manually, but it seems that IntelliJ IDEA no longer recognises my Grails application. When going to "Edit configurations...", in "Application" it says "[none]" and I can't select anything.

Grails Version: 3.1.9 Groovy Version: 2.4.7 JVM Version: 1.8.0_66

like image 306
Jordi Vilaplana Avatar asked Jul 13 '16 10:07

Jordi Vilaplana


People also ask

How do I add Grails in IntelliJ?

Support for the Grails framework is not bundled with IntelliJ IDEA. You can install the Grails plugin from the JetBrains repository as described in Install plugins. The latest compatible version of IntelliJ IDEA is 2021.3. You can find the documentation for Grails support in earlier versions of IntelliJ IDEA Help.

How do I change my Grails version in IntelliJ?

I right clicked on the application and went to Grails -> Change SDK Version. I chose the version I wanted, then IDEA asked me if I wanted to upgrade the application. Clicked yes and all was good.

How do you run the Grails project in IntelliJ Community Edition?

You can run it by using the bootRun gradle task in the gradle toolbar or going to the Application. groovy file and running the main() method.


1 Answers

A Simple solution to this is to refresh the gradle projects.

You can do this by popping out the little gradle tab and hitting the "Refresh All Gradle Projects"

like image 168
RapGodRory Avatar answered Sep 25 '22 20:09

RapGodRory