Ted Vinke

About Ted Vinke

Ted is a Java software engineer with a passion for Web development and JVM languages and works for First8, a Java Web development company in the Netherlands.

Grails 2.4 Released: Installing Groovy-Eclipse Compiler 2.3 in Eclipse/GGTS

ggts-logoThis month has been interesting: on the 7th Groovy 2.3.0 has been released, followed up by Grails 2.4 a few days ago. Great work!

If you’re an Eclipse or Groovy/Grails Tool Suite (GGTS) user, you might want to install the Groovy/Eclipse Compiler to have the IDE make use of all the Groovy 2.3 features. Now if you’ve downloaded the latest GGTS version – which at the moment is 3.5.1 – and created a brand new Grails 2.4 project, the Markers view might have alerted you to the following:
 

Groovy: compiler mismatch Project level is: 2.3 Workspace level is 2.1
Groovy compiler level expected by the project does not match workspace compiler level.

Consequently, also 1 Java problem is reported about a java.lang.NoSuchMethodError in an AssetMethodTagLib.groovy of the new Asset Pipeline Plugin shipping with Grails 2.4.

You might be tempted to follow the Quick Fix and set the project to 2.3 but the settings screen doesn’t allow you to select 2.3 yet.

ggts-groovy-no-2-3-compiler

Fix it by installing the Groovy Compiler 2.3 for Groovy/Eclipse.

Installing the Groovy Compiler in GGTS

  1. Inside GGTS, on the Spring Dashboard go to Manage > IDE Extensions.
  2. Search for the keyword “groovy”, find the Groovy 2.3 Compiler for Groovy-Eclipse
  3. Select it and press Install. Restart when asked.

Installing the Groovy Compiler in GGTS (alternative) or Eclipse

  1. Inside GGTS/Eclipse, go to Help > Install New Software…
  2. Work with the snapshot Update Site of the Groovy/Eclipse project: http://dist.springsource.org/snapshot/GRECLIPSE/e4.3/
  3. Under Extra Groovy compilers (Optional) mark Groovy Compiler 2.3 Feature
  4. Install. Continue. Restart when asked.

After installation the compiler became the default for the entire workspace.

ggts-groovy-2-3-installed

And you’re done. Problems are gone. Go work on your new Grails application!

Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

JPA Mini Book

Learn how to leverage the power of JPA in order to create robust and flexible Java applications. With this Mini Book, you will get introduced to JPA and smoothly transition to more advanced concepts.

JVM Troubleshooting Guide

The Java virtual machine is really the foundation of any Java EE platform. Learn how to master it with this advanced guide!

Given email address is already subscribed, thank you!
Oops. Something went wrong. Please try again later.
Please provide a valid email address.
Thank you, your sign-up request was successful! Please check your e-mail inbox.
Please complete the CAPTCHA.
Please fill in the required fields.

Leave a Reply


− 1 = eight



Java Code Geeks and all content copyright © 2010-2014, Exelixis Media Ltd | Terms of Use | Privacy Policy | Contact
All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
Do you want to know how to develop your skillset and become a ...
Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

Get ready to Rock!
You can download the complementary eBooks using the links below:
Close