I am using
http://spring.io/tools/ggts
for grails development. But the version that comes with this eclipse bundle is above 2.2.0. I need to change the grails version and point it to 2.2.0. I have downloaded grails version 2.2.0. How can i change the grails in the eclipse so that it points to 2.2.0? Thanks for help!
You can configure as many versions of Grails as you like inside of GGTS. Open the preferences and navigate to Groovy -> Grails. Click the "Add" button to add new versions of Grails. Now when you create projects you can select which of the installed versions you want to use. You can also associate different versions of Grails with already existing projects.
I hope that helps.
Related
I have installed GGTS 3.6.4 and also Groovy & Grails using GVM on my MAC OS.
In GGTS, Preferences - Configure Grails Installation - Add, I want to add the latest grails installed by GVM in /Users/user/.gvm/grails/current
I have also enabled the hidden folders in Mac.
grails version 3.x.x doesn't contain build.properties file.
So, you should follow the following steps:
Create /grails-3.x.x/build.properties file.
Inside build.properties write the content version name as
grails.version=3.1.1
Now, open GGTS .
Go to Window/Preferences.
Type grails in the 'type filter text'.
Select Grails.
Now click on Add button on the right panel to add grails version 3.x.x .
Select the grails version from the My computer.
You are ready to go.
Your GGTS will recognize it as now Grails installation.
According to the GGTS website, it only supports Grails 1.3/2.x (not the latest Grails 3.x). Pivotal discontinued support for GGTS earlier this year.
The best IDE alternative currently is IntelliJ IDEA. Grails 3 is built on Gradle, so no special support for Grails is necessary as IDEA already has excellent support for Gradle projects.
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.
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.
In Spring Tool Suite 3.5.1.Release , how do I set a project-specific Grails version?
I have multiple versions of Grails configured in STS.
Older versions of STS had a section called Grails in the "Properties for project" window where a particular version of Grails could be selected.
After upgrading to 3.5.1.Release I no longer see this option.
Thanks!
Since GGTS version 3.5.0 the Grails version GGTS uses now always follows the application.properties file in your project. So just change the grails version number in that file.
You may need to do some other things to actually upgrade your project to work with that newer version of Grails of course.
Please go through following step for customize your grails version in GGTS.
1) Go to Window toolbar.
2) Select Preferences.
3) Type grails on textbox and Search
you can see grails installations: where you can add and remove your different grails version. if you need to add grails version please add path of your grails version and select check box for that grails version. after adding and removing grails version you must click on OK button
I am using STS(Spring source tool Suite).Is it possible to have different versions Grails project in same work-space.When i tried, they always upgraded to a more recent version of Grails.
This is certainly possible as long as both versions of grails use the same version of groovy (multiple grails installs are allowed, but only one groovy install at a time).
In your project -> Properties -> Grails, click "Enable project-specific settings". And choose the version of grails that you need.