Maven: Groovy -Eclipse Compiler Plugin with Groovy 2.3.5

Since GMaven was discontinued, I used the Groovy -Eclipse Compiler plugin in my Maven projects. The version I used is 2.8.0-01, and I specifically used Groovy 2.1. I know that 2.9.0-01-SNAPSHOT has been around for a long time, but there is no ETA when it will be officially released.

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

Thanks.

+6
source share
3 answers

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

There probably will not be 2.3.5 from groovy -eclipse-batch, since groovy 2.3.6 is already released. After the compiler 2.3.6 is ported to greclipse, we will release the groovy -eclipse-batch artefact release in the maven central center, compatible with groovy -eclipsec-compiler 2.9.0 (which was recently released)

The latest version of groovy -eclipse-batch you can use is currently 2.3.4-01 and is compatible with the released version of groovy -eclipse-compiler 2.9.0-01.

For the latest artifacts released, see:

+5
source

I do not think you can. Groovy -Eclipse accepts new versions of Groovy. In fact, Groovy-Eclipe includes support for the various versions of Groovy that it supports. For each supported version of Groovy, the corresponding feature available on the update site will be available. Groovy -Eclipse 2.9.0 has suppoort for Groovy 2.3.x, and you will have more luck with Groovy 2.3.5 with this version of Groovy -Eclipse. There is some issue with the release of Groovy 2.3.5, so I would recommend 2.3.6, which should be now. Groovy -Eclipse support for Groovy 2.3.6 should be very soon, so I recommend installing Groovy -Eclipse from this update site at the end of the week: http://dist.springsource.org/snapshot/GRECLIPSE/e4.4

+1
source

I was in the same situation as you with GMaven switched to Groovy -Eclipse, but notice that now there is a replacement for GMaven, GMavenPlus , which is very similar to the original GMaven, and I switched back.

I used 2.1, but wanted to upgrade to 2.3 because there were inconsistencies when groovyc collected code using @CompileStatic, while Groovy -Eclipse would throw an error. The advantage of the Groovy -Eclipse compiler is that it can compile Java and Groovy without stubs. The main advantage of GMavenPlus is that it compiles with the standard Groovy compiler of whatever version you want, and also supports indy.

If the Groovy -Eclipse value is more important, the existing answers are all right. If using the version of Groovy you want and frequent updates are more important, then consider GMavenPlus.

0
source

Source: https://habr.com/ru/post/972968/


All Articles