Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven: Groovy-Eclipse Compiler plugin with Groovy 2.3.5

Since GMaven has been discontinued, I have been using Groovy-Eclipse Compiler plugin on my Maven projects. The version I used is 2.8.0-01 and I specifically used Groovy 2.1. I know 2.9.0-01-SNAPSHOT has been out for the longest time, but there's no ETA when it will be officially released.

My question here is... can I use safely use version 2.8.0-01 with Groovy 2.3.5 without potential side effects?

Thanks.

like image 918
limc Avatar asked Jul 28 '14 15:07

limc


People also ask

How to run Groovy in Eclipse?

Run the Groovy class. Right-click the Groovy class, and select Run As Groovy Script from the context menu.

Does Maven work with Groovy?

Groovy-Eclipse provides a compiler plugin for Maven. Using the compiler plugin, it is possible to compile your maven projects using the Groovy-Eclipse compiler.

What is Groovy-Eclipse compiler?

Groovy-Eclipse provides a compiler adapter plugin for Maven, making it is possible to co-locate and compile your Groovy and Java sources using the Groovy-Eclipse batch compiler.


2 Answers

Since there is no groovy-eclipse-batch 2.3.5 you can not use it with any version of groovy-eclipse-compiler.

Probably there won't be a 2.3.5 of groovy-eclipse-batch ever, since groovy 2.3.6 has already been released. Once the 2.3.6 compiler is ported to greclipse, we will put out a release of the groovy-eclipse-batch artefact to maven central that is compatible with groovy-eclipsec-compiler 2.9.0 (which has recently been released)

Right now, the latest groovy-eclipse-batch you can use is 2.3.4-01 and it is compatible with the released version of groovy-eclipse-compiler 2.9.0-01.

For the latest released artefacts see:

  • http://search.maven.org/#search|ga|1|groovy-eclipse-batch
  • http://search.maven.org/#search|ga|1|groovy-eclipse-compiler
like image 134
Kris Avatar answered Oct 27 '22 00:10

Kris


I don't think you can. Groovy-Eclipse adopts new versions of Groovy. In fact Groovy-Eclipe includes support for various versions of Groovy it supports. For each supported version of Groovy there will be a corresponding feature available from the update site. Groovy-Eclipse 2.9.0 has suppoort for Groovy 2.3.x and you'd have more luck with Groovy 2.3.5 with that version of Groovy-Eclipse. There is some sort of a problem with Groovy 2.3.5 release, hence I'd recommend 2.3.6, which should be out now. Groovy-Eclipse support for Groovy 2.3.6 should be in very soon, hence I'd recommend to install Groovy-Eclipse from this update site at the end of the week: http://dist.springsource.org/snapshot/GRECLIPSE/e4.4

like image 32
aboyko Avatar answered Oct 26 '22 23:10

aboyko