IntelliJ 13 New variant of No Grails project
I would like to create a new Grails project in IntelliJ 13.
I have IntelliJ 13. I have Grails.
I don't see the Grails option in the New Project dialog.
How do I configure IntelliJ 13 so that there is a Grails option in the New Project dialog?
When I choose Groovy, I get a missing library error. Grails was installed in my home directory ~/.grails
using the GVM.
source to share
My Newell Dialog now has a Grails option, although I'm not sure what it is.
Here are some of the things I've done:
On the command line, in an already existing Grails project, I ran:
grails integrate-with --intellij
Then I opened the project (which involved migrating the legacy version of the IntelliJ project that Grails created for IntelliJ 13)
There was a green box in the upper right corner of the project window that complained that the Grails SDK was not configured. This box disappeared before I could click on the link inside it to try and fix the problem.
I closed the project and reopened it, hoping that the green box would reappear. This is not true. But a red box appeared that complained that the Java SDK was not configured properly.
In the Project Structure dialog box, I configured the Java SDK.
I closed my Grails project and then tried to create a new Grails project. This time the Groovy option had the Grails option.
But I think it is still a problem because the dialog displays No library selected
for Groovy.
Groovy is included as part of Grails, so maybe I should click the New ... button and select the Groovy installation to be packaged into the Grails installation? But this looks like what I would expect IntelliJ to auto-configure when linked with a Grails installation.
source to share
Grails is only supported in the Ultimate version of IntelliJ IDEA. It is not supported in the community edition.
You can try the Ultimate version for free for 30 days before it goes into mode where you can only work for 15 minutes until you stop / close everything you are doing and reopen the IDE.
source to share
I am assuming you are using the community version of IntelliJ IDEA which does not provide any way to create a grails app. But this does not mean that you are not allowed to create a grails project.
Use the command line to create a new Grails project,
grails create-app YourAppName
this will create the grails app in your current working directory. Then just run the application using the following command
grails run-app
this will resolve all dependencies and run your application.
Now open IntelliJ IDEA and download this app from the current working directory and then follow the instructions and this.
The only drawback to using this method is that suggestions and autocomplete will not work, the GSP pages will be unrecognized. If you need these features, head over to the Ultimate Edition IntelliJ IDEA.
source to share