Grails and Gradle not Importing in Intellij 14.1 CE - grails

I have a grails 3.0.9 app that I am trying to import in IntelliJ. I did it before and it works but now it is not recognising anything.
Here is what I follow:
https://www.jetbrains.com/idea/help/importing-project-from-gradle-model.html
But I do not get anything that ressembles to a grails project.
Here is a screenshot of my project files left side bar:
What is that supposed to mean?
Why can't it just import it by using my build.gradle file and get it done with so I can run my grails app?

Intellij Ultimate does what you want, JetBrains don't support grails in the CE edition.

Related

Creating a Gradle Grails project in Intellij

I have created a Grails and Gradle project in Intellij (following the instructions here: https://www.jetbrains.com/idea/help/creating-gradle-project-with-grails-integration.html).
However, after I generate the Grails project (using the init gradle task), the Grails View does not appear as in step 5 in those instructions.
I can't find any way to make Intellij recognise it as a Grails project. When I do 'Add Framework Support' there is no grails option. When I right click on the project there is no 'Grails' option. So I can't run Grails commands or do actions such as create a new controller.
I am using Intellij 13.1.3, Grails 2.5.0, Gradle 2.8 and Grails Gradle Plugin 2.2.0.RC1. I have tried a number of different versions of each of these with no success.
Does anyone have this working or know how to get Intellij to recognise a Grails project with Gradle?
Typical - after several days trying I found the answer 5 minutes after posting... This was not supported in Intellij 13. I have now tried in Intellij 14.1.5 and the Grails View appears straight away! So the answer is to upgrade Intellij to v14.
Links:
https://github.com/grails/grails-gradle-plugin/issues/66
https://youtrack.jetbrains.com/issue/IDEA-120860
https://youtrack.jetbrains.com/issue/IDEA-116815

Which SDK for Importing existing Grails project to IntelliJ IDE?

I have created a new grails project which named is helloworld by console. And now, I want to import this project to IntelliJ IDE. At the one of steps, need to choose a project SDK.
Which one should I choose?
Use the Java JDK ("JDK" in the pictured list).

Grails Project not shown in NetBeans project window

I create a new Grails project from NetBeans but when I complete the project complition wizard, nothing to show in my NetBeans project window. My details configuration is:
NetBeans 8.0.2, JDK 8 64bit, Grails 3.0.1
I check my environment veriable setting for Java & Grails also. Everything seems ok, and one important thing is in command line when I type grails -version, it shows the version name and so on. I uninstall NetBeans, JDK, & Grails several times but same problem, I also try it for JDK 1.7 32 bit, no result. I'm used to with NetBeans, so I don't try to other IDE.
Maybe look where the project is defined on disk and open it into NetBeans.
I dont know how this case was solved, but to me it looks like the problem is still valid:
The New Project wizard (Groovy -> Grails Application) calls "grails create-app" but does not generate the nbproject directory.
My environment is:
NetBeans: 8.0.2; Grails Version: 3.0.4; Groovy Version: 2.4.4; JVM Version: 1.7.0_79
Netbeans 8.0.* does not have support for Grails 3.* projects. It can create project but cannot recognize and open the project since the project structure has been dramatically changed from Grails 2.* to 3.*. There was a task created to resolve this problem. Now it reads VERIFIED FIXED for version 8.1. So please upgrade to Netbeans 8.1.* in order to be able to handle Grails 3.* projects in Netbeans.

Grails 3.0 support in NetBeans

I was running Grails 2.2.0 in NetBeans and it was working fine. I tried to upgrade the project to Grails 3.0 but after creating the project NetBeans is not able to open the project.
Does anyone know which plugins to install in NetBeans (if available) to make Grails 3.0 work?
Just wanted to let you know that I've added initial support for grails 3 in NetBeans.
https://netbeans.org/bugzilla/show_bug.cgi?id=254405
At the moment you can get these with the latest NetBeans nightly: http://bits.netbeans.org/download/trunk/nightly/latest/
This will allow NetBeans to recognise/create projects, and the create controller/domain/etc actions working.
One important thing still missing is adding support for the gradle build files (no syntax highlighting or helpers for the gradle files), but in the meantime you may try it and report problems/improvements.

IntelliJ 13 New Project No Grails option

I'd like to create a new Grails project in IntelliJ 13.
I have IntelliJ 13.
I have Grails.
I do not see a Grails option in the New Project Dialog.
How do I configure IntelliJ 13 so that the New Project Dialog has a Grails option?
When I select Groovy there's an error about a missing library. Grails was installed under my home directory in ~/.grails by GVM.
Please take a look in which edition of IntelliJ you are using.
The Community edition supports Groovy, but don't support Grails;
the Ultimate edition supports Grails and a lot of Frameworks
You are selecting a wrong(java) option , you have to select groovy in left menu bar and then you will be shown grails option.
My IntelliJ New Project Dialog now has a Grails option, though I'm not sure exactly what caused it to appear.
Here are some things that I did:
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 IntelliJ project file that Grails created to IntelliJ 13)
There was a green box in the upper right corner of the project window that complained about the Grails SDK was not being configured. That box disappeared before I could click on the link inside of it to attempt to correct the problem.
I closed the project and re-opened it, in the hope of causing the green box to reappear. It did not. But a red box appeared that complained that the Java SDK was not configured properly.
In the Project Structure Dialog I configured a Java SDK.
I closed the Grails project, then I tried to create a new Grails project. This time there was a Grails option under the Groovy option.
But I think there is still issue because the dialog shows No library selected for Groovy.
Groovy is included as part of Grails, so perhaps I should click the "Create..." button and choose some Groovy installation that is packaged in the Grails installation? But, this seems like something I would expect IntelliJ to configuration automatically when it is linked to the Grails installation.
Did you enable Grails plugin in IDE? Go to File>Settings>Plugin and check the grails option, restart IDE.
Grails is only supported in the Ultimate version of IntelliJ IDEA. It isn't supported in the community edition.
You can try the Ultimate version for free for 30 days before it goes into a mode where you can only work 15 minutes until it has you stop/close whatever you're doing and reopen the IDE, I guess.
I guess you are using the community edition of IntelliJ IDEA, which does not provide any option to create a grails application. But that doesn't 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 present working directory.
Then simply run the app using the following command
grails run-app
this will resolve all the dependencies, and start your app.
Now open the IntelliJ IDEA and load this app from your present working directory, then proceed as instructed and that's it.
Only demerit of using this technique is that suggestions and auto-completion won't work, GSP pages will be unrecognized. If you want these features then go for Ultimate Edition of the IntelliJ IDEA.
You can create a grails project via terminal (grails create-app ... ) and just import (or new -> from existing sources) project from Idea. Than you should choose "import project from external model -> gradle (or maven)". And your project is ready!
I think this will help you.
You need Ultimate version of IntelliJ not Community one in order to use Groovy/Grails.

Resources