Groovy Compiler 1.7 - how to install it? eclipse indigo - eclipse

vvSo hi guys, im tryin to install groovy 1.7 plugin to my eclipse indigo but i can't..
I followed instructions on this page but unfortunetly it doesn't work.
What i mean by doesn't work?
Even without installing 2.0 compiler i have it
After installing Groovy-Eclipse without the extra compilers, the Groovy 1.8 compiler is active by default. And the Groovy 2.0 compiler becomes active after installing the extra compiler.
And as it says i shouldn't have but well meaby its an old description.
Then i'm goin to Preferences -> Groovy -> Compiler page, and guess what i can only switch to 1.8.6.xx-MORENUMBERS-e37-REALEASE. When i do i only can switch back to 2.0.7.xx-MORENUMBERS-e37-REALEASE.
So where is this 1.7 compiler because i dont see it there?
So i followed up with adding to eclipse.ini -groovy.compiler.level 17, still doesn't work.
I tried to change file bundles.info, but there is no 1.7 version.
So someone know how i can get this compiler 1.7? I was searching it so long, and i only found Groovy Eclipse plugin that only operates on 2 version (above one).
Thanks in advance for an answer!

It's been a while since i last saw 1.7 in the plugin. I guess it got outdated and removed. This page (near the bottom) tells that Groovy 1.7 is deprecated for GGTS (which, i guess, uses Groovy-eclipse):
Deprecating of Groovy 1.7 support
The Groovy 1.7 support in GGTS has been deprecated. It is still possible to install it for this release, but it will be removed in future releases. If you need to install the Groovy 1.7 compiler, then:
Go to Help -> Install new software
Choose the Springsource update site to work with
Uncheck Group items by category, As shown in the image:
Is that doesn't work, maybe you can try to install an older version of Groovy-eclipse from http://dist.springsource.org/.

Related

Groovy compiler on Eclipse doesn't include version 2.4 anymore

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.
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
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).

Where can I download Groovy Grails Tool Suite version 3.5.1 for Windows?

The download page at SpringSource (http://spring.io/tools/ggts/all) doesn't seem to make previous versions of GGTS available, but I want to have this version to be able to toggle between the Groovy 2.0.7 and Groovy 2.1.8 compilers.
As a potential solution, I searched for mirrors, but was unable to find any. In addition, I also checked GitHub for the GGTS source for this release so I could compile it myself, but I didn't find that either.
You can change the version directly in the URL so this one should work:
http://download.springsource.com/release/STS/3.5.1/dist/e4.4/groovy-grails-tool-suite-3.5.1.RELEASE-e4.4-win32-x86_64.zip
I hope that helps.
The GGTS 3.5.1 32bit version is here:
http://download.springsource.com/release/STS/3.5.1/dist/e4.4/groovy-grails-tool-suite-3.5.1.RELEASE-e4.4-win32.zip
It has grails-2.3.8, tomcat 6 and 7.

Java 8 and Eclipse on OS X Mavericks

I want to play a bit with the recently released Java 8 on OS X Mavericks, but have problems configuring the compiler compliance level to anything beyond 1.7.
I tried this with a recent Luna build (4.4.0M6) as well as with Kepler (4.3 SR2), patched with this.
What am I doing wrong?
I think I got it right now. I just re-installed the patch from here and now 1.8 is shown as compiler level.
I think while the "About" dialog showed me that the patch was installed, it probably wasn't done properly, because it updated other plugins / the IDE to SR2 at the same time.
Anways, this is solved.
I had some problems getting Java SE 8 to work in Eclipse too. I followed the Instructions in the Eclipse wiki for the Eclipse Kepler SR2 (4.3.2) version.
After that, I could choose version 1.8 instead of 1.7, which solved the problem. The instructions seem to link to the same patch you used, though, but maybe you missed something important.

Eclipse plugin (reinstall ?)

I'm working for a long time with Eclipse Helios 3.6 and have a lot of plugins installed from the Eclipse webpage. Now, I wanted switch to the Eclipse Version Juno 4.2
My question: Can I use the old plugins from my Helios or must I reinstall the plugins ?
I am not too sure, but Eclipse should be backwards compatible. Just add the update site for Eclipse 4.2, run the upgrade and the plugins should continue to work. Sometimes features (that are possibly used by the plugins) are marked as deprecated, but I think they are not removed from Eclipse.
Other than that: You could make a backup (or a simple copy) and try it out to be sure.

How do i find out the JDK version Eclipse is using?

I see JRE all over the place, but i can not be sure which JDK is compiling my code. How do i find out?
You can still check/set which JDK version you want to compile to. If you go to Window->Preferences, then click "Java" from the menu on the left and then "Compiler". The first setting allows you to see which JDK version is being complied with.
I know this doesn't directly answer your question since JDK isn't actually compiling it, but hopefully it helps!
Actually Eclipse has its own compiler. You can develop java apps using only the JRE and Eclipse
You don't find JDK explicitly mentioned anywhere because way to point to a JDK is under the name of 'Installed JRE'. That is Window > Preferences > Java > Installed JREs. This is useful when using m2e plugin.
secondly apart from having it's own built in compiler, it is recommended to you install one of your own to support development of Java programs. Except below from eclipse wiki page :
If you intend to use Eclipse for Java development, then you should install a JDK