Eclipse Oxygen/Neon and groovy - is it possible?

Viewed 10218

4 years ago I wrote on Groovy using Eclipse and was happy. Later I used Groovy through IntelliJ or NetBeans. Now again I am supposed to work in Eclipse but I can and want to do many tests in Groovy.

The problem is that when I am trying to get any Groovy plugin from Eclipse Marketplace, Eclipse agrees to install the Groovy-Eclipse feature only with condition of uninstalling of virtually everything. These plugins are old, base on even older jars and are incompatible with contemporary plugins, basing on more modern jars. I am sorry if I am telling that wrong, I am trying up to my understanding of Eclipse plugins compatibility and creation.

I see three ways:

To forget Groovy and do tests on Java. But analyzing XML, HTML and JSON in java is much less convenient. I wouldn't like to go that way.

To load the Eclipse for plugin developers, the source code of Groovy plugin and recreate it with new jars. It is the most interesting way, but I am horrified by the amount of work - it will take weeks. Or more. And I need tests now.

To install some light Eclipse package that has Groovy. That would be fast. But I won't like to install some several years old version.

IMHO, I am not breaking the rules, for I am not asking for a tool. I am asking for a modern, correct and compatible combination of versions of the known tools - Eclipse and Groovy plugin.

Also, it is not a duplicate of the old questions, for I know how to work on Groovy on old versions of Eclipse. And I am asking about new versions - Oxygen or Neon.

I can see on the GitHub https://github.com/groovy/groovy-eclipse/wiki/Groovy-Eclipse-2.9.2-Release-Notes obviously the last version of groovy for Eclipse. But how can I add it to an Eclipse package? Not a way is given on the page. What is the sense of making an Eclipse plugin that does not support an import from Eclipse? Obviously, there should exist some way.

If I go to https://www.function1.com/2016/06/installing-eclipse-groovy-plugin, there is a version of Groovy for Mars. It agrees to be installed on Oxygen only on conditions of uninstalling maven and java. A bit too severe, isn't it?

3 Answers

I'm using eclipse Oxygen Release (4.7.0) for groovy/gradle/grails projects with no huge problems. I started with "Eclipe IDE for Java Developers" and installed several packages afterwards.

Here's a list of "Installed software":

  • Buildship: Eclipse Plug-ins for Gradle 2.1.2.v20170807-1324 org.eclipse.buildship.feature.group Eclipse Buildship
  • Code Recommenders for Java Developers 2.4.9.v20170613-1301 org.eclipse.recommenders.rcp.feature.feature.group Eclipse Code Recommenders
  • EclEmma Java Code Coverage 3.0.0.201706140232 org.eclipse.eclemma.feature.feature.group Eclipse EclEmma
  • Eclipse IDE for Java Developers 4.7.0.20170620-1800 epp.package.java Eclipse Packaging Project
  • Eclipse Java Development Tools 3.13.0.v20170612-0950 org.eclipse.jdt.feature.group Eclipse.org
  • Eclipse Platform 4.7.0.v20170612-1255 org.eclipse.platform.feature.group Eclipse.org
  • Eclipse Quicksearch 3.7.3.201602250752-RELEASE org.springsource.ide.eclipse.commons.quicksearch.feature.feature.group Pivotal Software, Inc.
  • Eclipse RCP 4.7.0.v20170612-1255 org.eclipse.rcp.feature.group Eclipse.org
  • Eclipse Web Developer Tools 3.9.0.v201706011953 org.eclipse.wst.web_ui.feature.feature.group Eclipse Web Tools Platform
  • Eclipse XML Editors and Tools 3.9.0.v201706011851 org.eclipse.wst.xml_ui.feature.feature.group Eclipse Web Tools Platform
  • Git integration for Eclipse 4.8.0.201706111038-r org.eclipse.egit.feature.group Eclipse EGit
  • Groovy Compiler 2.4 2.9.2.xx-201711060326-e47 org.codehaus.groovy24.feature.feature.group Codehaus.org
  • Groovy-Eclipse Feature 2.9.2.xx-201711060326-e47 org.codehaus.groovy.eclipse.feature.feature.group Codehaus.org
  • Java implementation of Git 4.8.0.201706111038-r org.eclipse.jgit.feature.group Eclipse JGit
  • JavaScript Development Tools 2.1.0.v201706011953 org.eclipse.wst.jsdt.feature.feature.group Eclipse Web Tools Platform
  • JDT Core patch for Groovy-Eclipse plugin on Eclipse 4.7 2.9.2.xx-201711060326-e47 org.codehaus.groovy.jdt.patch.feature.group Codehaus.org
  • Jspresso Developer Studio Spock tests feature 3.0.7.201611272038 org.jspresso.contrib.sjsplugin.spock.feature.feature.group Maxime HAMM
  • Oomph Setup 1.9.0.v20170706-0615 org.eclipse.oomph.setup.feature.group Eclipse Oomph Project
  • YEdit Feature 1.0.20.201509041456-RELEASE org.dadacoalition.yedit.feature.feature.group YEdit Project

A couple of them can definitely be deleted.

Related