Groovy compiler on Eclipse doesn't include version 2.4 anymore

992 views Asked by At

I need to set up my Eclipse IDE again and unlike when I first set it up I have issues with the Groovy software. I would need the Groovy compiler version 2.4, but can only select between 2.5, 3.0 or 4.0. I used the same location as last time: https://dist.springsource.org/release/GRECLIPSE/e4.16

Also I tried other location which unfortunately don't work properly. I have the Eclipse version 2020-06. Can anyone tell me what I do wrong this time or which configuration to adapt?

Thank you.

1

There are 1 answers

4
Aaron Digulla On

Download "Eclipse IDE for Java Developers" (2020-09 a.k.a 4.17) from https://www.eclipse.org/downloads/packages/release/2020-09/r

Note: The first link on the page gets you the Oomph installer which WILL NOT WORK. Use one of the links below. If there is "inst" anywhere in the name of the file you downloaded, try again.

The reason why Oomph breaks GRECLIPSE is that it will add an update site which will try to install the latest 4.x GRECLIPSE -> fail.

Unpack the archive somewhere.

Go to Help -> Install New Software.

Add this update site: https://dist.springsource.org/release/GRECLIPSE/3.9.0/e4.17

(Using the marketplace will leave you with GRECLIPSE 4.x)

Always select the main package and Maven support if you need it.

Click Next.

Make sure that it tries to install 3.9.0 and nothing else.

Click Next & Finish until it installs.

--- old instructions for reference ---

You will need to download Eclipse Photon from here

https://www.eclipse.org/downloads/packages/release/photon/r

and then Groovy Feature 3.5.0.v201909291357-e48-RELEASE add this update site:

https://dist.springsource.org/release/GRECLIPSE/e4.8

What you should see when you do this correctly

All the versions of Eclipse after this one don't support Groovy 2.4 anymore.

I've tried to do this with Oomph but that way, I always ended up with Groovy Feature 4.1.

My solution then was to create another workspace for all my Groovy 2.4 projects (Jenkins Pipelines, mostly).