Questions tagged [groovy-eclipse]

Groovy-Eclipse is the set of Eclipse plugins that provide Eclipse support for Groovy projects.

Groovy is a dynamic language which is based on the Java Virtual machine. Groovy supports standard Java constructs including annotations, generics, static imports, enums, varargs and in addition advanced language features as

Groovy is a dynamic language that runs on the JVM and is tightly integrated with the Java language. Groovy provides lots of simplifications compared to standard Java language features and advanced language features as properties, closures, native support for lists, maps and regular expressions, duck typing and the elvis operator.

Groovy is almost compatible to Java, e.g. almost every Java construct is valid Groovy code which makes the usage of Groovy for an experience Java programmer easy.

Related Links:

51 questions
1
vote
1 answer

Groovy-Eclipse 2.5.2: java.lang.ClassNotFoundException: picocli.CommandLine$ParameterException

I'm using Eclipse 4.5 with the Groovy-Eclipse 2.9.2/4.5 plugin which I thought was supposed to have the Groovy 2.5 compiler. However, it didn't have any picocli support so I added the groovy-cli-picocli-2.5.2-indy.jar to my classpath and was able…
AndyJ
  • 1,204
  • 3
  • 14
  • 28
1
vote
1 answer

How to write a groovy testcase for a function that returns the string representation of a json object?

I have a function called userLogin() that takes the input (username and password) of a login page as parameters and returns the string representation of a Json object that contains the details of the user who is trying to login. My Function: public…
1
vote
1 answer

Struggling to get Eclipse Groovy Batch compiler running in IntelliJ 2016.2.4

I'd like to compile Groovy in IntelliJ IDEA using the Eclipse groovy batch compiler. But I'm struggling to find solid documentation of how to get this to work, or what to expect. Naively I've downloaded the latest batch compiler from Maven…
Dr Joe
  • 718
  • 5
  • 19
1
vote
1 answer

Running job-dsl-plugin using jdk8 & groovy 2.4.4- java.lang.IncompatibleClassChangeError

I am using job-dsl plugin to automate jenkins jobs creation. Below is my maven configuration. 1.8 2.4.4 1.37
inari6
  • 401
  • 1
  • 9
  • 19
1
vote
1 answer

Conflict dependency when installing groovy-eclipse plugin to Luna

I have a fresh downloaded copy of eclipse Luna (eclipse-java-luna-SR2-linux-gtk.tar.gz) (Version: Luan Service Release 2 (4.4.2) Build id: 20150219-0600) from official website. When I am trying to install groovy-eclipse plugin(The only available…
zaozaoer
  • 361
  • 1
  • 3
  • 14
1
vote
1 answer

Eclipse mars m2e & groovy eclipse compiler?: no source folders

I tried to import a maven multimodule project that worked with eclipse luna into eclipse mars. This multi-module maven project has no source folder in eclipse mars, the dependencies are also not present: I can't add the src/main/java folder as a…
Mark
  • 590
  • 7
  • 17
1
vote
0 answers

Groovy Eclipse Compiler for Intellij + Grails 2.5

I have researched this extensively on the internet but haven't been able to find anything relevant to my situation. I currently have a project with grails 2.5 and I am using the Intellij 14.1.3. Since 14.1 Intellij allows the groovy eclipse compiler…
nmarques
  • 151
  • 12
1
vote
0 answers

displaying a different line of code in an eclipse editor (without changing everything else)

Setting: I am doing a programming experiment where I need to display a different method signature (one line of code) to my test persons than the line of code actually exists. Example: // this code should be visible public def aFunction(def a, def b)…
macsniper
  • 330
  • 1
  • 11
1
vote
0 answers

Eclipse - Groovy gets/sets appear as errors with Scala IDE installed

I have the following Groovy class: @ToString @EqualsAndHashCode class GitChangeset { String hash String commitMessage = "" String author = "" String authorEmail = "" String commitLink = "" String[] parents = [] …
Kevin McCarpenter
  • 786
  • 1
  • 7
  • 22
1
vote
2 answers

How to use Groovy-Eclipse with specific groovy compiler?

According to groovy-eclipse plug-in website, groovy-eclipse plug-in supports certain groovy versions, 1.8, 2.0 and 2.1. This seemed a bit restrictive to me. What am I supposed to do if I work with groovy 1.9 or 1.7?
mert inan
  • 1,537
  • 2
  • 15
  • 26
1
vote
0 answers

Groovy-Eclipse compilation fails with NullPointerException in STS-3.3

Following error is encountered while importing the reactor project (https://github.com/reactor/reactor) in STS 3.3.0: Description: Internal compiler error: java.lang.NullPointerException at…
gulench
  • 115
  • 5
0
votes
1 answer

Not able to install Groovy Eclipse plugin in Eclipse 2022-12

I haven't installed the Groovy Eclipse plugin for a while because I mostly did not need it anymore. However, I'm now looking at one project that I need this for. I'm using Eclipse 2022-12. When I attempt to install the latest Groovy plugin from the…
David M. Karr
  • 14,317
  • 20
  • 94
  • 199
0
votes
2 answers

Groovy: Class fields default conditional values

I have below sample classes in my application: class A { Integer a String b Integer c = (a < 5) ? a+5 : a+10 } class B { void method1() { A a = new A(a:4, b:"test") log.print("c: ", a.c) } } When my code is calling…
Phoebe
  • 1
  • 1
0
votes
1 answer

groovy 3.0.9 import static variable doesn't work

I have upgraded from groovy 2.4.10 to 3.0.9 and it broke the static variable imports. I am using groovy-eclipse-compiler. Here are some implementation and the error details (I have created a minimal repo that reproduces the behavior. here's the…
0
votes
0 answers

In STS - The type groovy.transform.Generated cannot be resolved. It is indirectly referenced from required .class files

I am trying to use spock framework in STS. But I am facing this error in my groovy class. ERROR - The type groovy.transform.Generated cannot be resolved. It is indirectly referenced from required .class files let me know, how to fix this…