Does Spring Tools Suite 3.8.3 support groovy grails? - grails

i want to develop with groovy/grails and need a IDE. I found older versions of STS supported groovy/grails. Does Spring Tools Suite 3.8.3 support groovy/grails?

Grails support in STS (Groovy/Grails Tools Suite, actually) ended in version 3.6.4 (source).

You need only groovy support in your IDE, as starting from Grails 3.0 all project are plain gradle projects

Related

Which version of codenarc will support to Grails 1.3.7?

I am trying to implement for my grails project using 1.3.7 version. I am using ant build instead of Gradle build tool. I am not able to find
Which version of codenarc will support to Grails 1.3.7?
Versions above 0.9 and under 1.0.

Grails, GGTS Setup

I need to setup a Windows working environment for Grails. I'd like to use GGTS as an IDE but got several errors compiling a sample project. Currently I'm using jdk1.8.0_40 and Grails 2.5.0. which results in this error (but in the end the project is working):
Groovy:Unexpected problem with AST transform: The Spock compiler
plugin cannot execute because Spock 1.0.0-groovy-2.4 is not compatible
with Groovy 2.3.10. For more information, see http://versioninfo.spockframework.org
On top of that there are two Java Exception Breakpoints which are listed as "unknown". Only info regarding version support I could find is:
Java SDK 1.5+ for Grails 1.2 or greater
GGTS itself seems not to run with the latest grails (3.0.1) since I simply cannot add it (directory appears not to be a grails installation).
Should I use Java 7 instead?
This issue is not related to JDK 1.8 or 1.7, but its is related to the GGTS IDE 3.6.4 Groovy Compiler version. As the error clarifies that Spock 1.0.0 version needs Groovy 2.4 compiler.
GGTS 3.6.4.RELEASE-e4.4.2 IDE comes with Groovy 2.3.10 compiler by Default.
Install Groovy Compiler 2.4 Feature and "switch to 2.4" will resolve this issue.
Refer: http://docs.codehaus.org/display/GROOVY/Compiler+Switching+within+Groovy-Eclipse
If you cannot switch compilers from the IDE Groovy Compiler preference page, follow the instructions to perform the switch from outside of Eclipse:
(Grails 2.5.0 uses Spock 1.0.0 (and internally Groovy 2.4.3 and this is why your project is compiling & working fine as the Grails runtime environment is taking over)
As an additional experience report to the answer above, thus providing another solution variant: I had to use the http://dist.springsource.org/snapshot/GRECLIPSE/e4.4 update site (as opposed to the release version mentioned in the link above) to make the 2.4 compiler feature available in the update manager.
After installation, the compiler errors are gone.
I noticed that project-specific groovy compiler is set in the Groovy Compiler preference page in new grails projects. By selecting "I don't care" for "Groovy compiler" it will default to the workspace groovy compiler which is usually correct (for me it's version 2.4). This worked for me but experience may vary.

Grails plugin version compatibility

Anyone know if I write a Grails plugin using Grails 2.2.1 (which uses Groovy 2.0) and use some Groovy 2.0 features e.g. #TypeChecked and if a Grails project that is using an earlier version of Grails and an earlier version Groovy use this plugin?
the plugins and groovy versions of course are not backward-compatible in terms of new features. you shall prepare a backward-compatible version of your plugin by removing groovy 2.x features out of it

How to install Grails in Eclipse Kepler 4.3 and how to run Grails applications using it?

I am unable to deploy Grails into Eclipse Kepler 4.3. I would like to know whether it is possible to deploy Grails into Eclipse Kepler 4.3 version. If yes, then how to develop applications using it. If no, then what is the alternative?
If by deploying Grails you mean to create an environment for building Groovy and Grails application, then you need to install:
Groovy/Grails Tool Suite (GGTS)
Most likely there is an installation for Eclipse Kepler (4.3).
After that it's a matter of creating new Grails/Groovy application. Make sure you follow Grails documentations. They are my best friends in terms of learning API.

Netbeans groovy 1.8 support

I am using NetBeans 7.1, which comes with Groovy 1.6 support. I have to do a Grails project, but with Groovy 1.8 support. So I downloaded Groovy 1.8 installer, installed it and added the Library in Netbeans -> Tools -> Libraries (and removed Groovy 1.6 library).
Now whenever I use some stuff added in Groovy 1.8 within my Grils project, it still underlines it and throws "cannot resolve" error... I was googling it for last 2 hours and everything I find seems I have already done... it starts to give me a headache... Any suggestions on how to solve it?
NetBeans support from Groovy has -- until recently -- stagnated.
The Groovy support (as you say) is for Groovy 1.6.X, and the Grails support is similarly old.
There has very recently been some activity in trying to improve this, but at the current time you are probably better using Eclipse, STS (both free) or IDEA (paid) if you want proper IDE support for up to date Grails development.

Resources