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
0
votes
1 answer

MarkupBuilder in Eclipse: unable to resolve class groovy.xml.markupBuilder

I feel a bit silly for making this question, but I'm out of options. Basically, I have this on a "let's learn groovy" project: package com.mypackage.markupexercise import groovy.xml.MarkupBuilder println "Hello MarkupBuilder" def writer = new…
Neuromante
  • 531
  • 2
  • 12
  • 29
0
votes
0 answers

Maven Unable to Resolve Groovy Class In Library

I have two maven projects I'm currently working on; project-data and project-base. project-data has a dependency on project-base defined in the pom as com.tura.jetty
pbuchheit
  • 1,371
  • 1
  • 20
  • 47
0
votes
1 answer

Groovy failures after upgrading eclipse

Recently upgraded to Eclipse 2020-12 (4.18.0) and Groovy hasn't worked since. Upgraded Groovy with no improvement. Now running (expanding all the "What's installed" tree) Eclipse Groovy Development Tools …
0
votes
2 answers

groovy-eclipse-compiler compiles but javac compilation fails

My project builds successfully with groovy-eclipse-compiler, but fails without groovy-eclipse-compiler (using just javac). The build fails with an error message as given below (reported in a test class, while mocking an invocation) java: reference…
Kaushal
  • 665
  • 2
  • 9
  • 21
0
votes
1 answer

Run as Groovy Script

After years of working fine, for the last few months I've not had the ability to Run As Groovy Script. I can select it from the menu, but nothing happens. Today I installed the latest Eclipse and plugin in an attempt to fix, but no luck. What went…
wytten
  • 2,800
  • 1
  • 21
  • 38
0
votes
0 answers

Trait methods are not fully visible in groovy-eclipse

I have 2 traits: trait LinkTrait { String compositeKey } trait Named { String name } and a class: class Project implements LinkTrait, Named { String company def beforeValidate() { if( company && name )…
injecteer
  • 20,038
  • 4
  • 45
  • 89
0
votes
0 answers

How to analyze compilation error with groovy-eclipse-batch compiler

I'm trying to compile groovy (+spock) files in a project using the checker-framework. It fails and I need some hints how to get to a solution.. The error is Compilation failure Failure executing groovy-eclipse compiler: ---------- 1. ERROR in…
Bertram Nudelbach
  • 1,783
  • 2
  • 15
  • 27
0
votes
1 answer

I am getting error in eclipse after installed groovy plugin

I have installed groovy plugin in my Eclipse and I have changed the compiler to 2.4 as a job duty and restarted the eclipse then I am getting the error "Failed to create the part's controls". Can anyone please help me?
Ram
  • 1
  • 1
0
votes
1 answer

Unable to resolve class inside static method

I have a groovy class "Utils.groovy" which contains the method "makeHttpCall()". This is a summarized version of the method: static String makeHTTPCall() { ... request.setHeader(javax.ws.rs.core.HttpHeaders.AUTHORIZATION, authHeader) …
0
votes
0 answers

Getting code=10053 error while installing groovy-eclipse on Eclipse IDE (Oxygen) for Eclipse Committers

After following the steps in https://github.com/groovy/groovy-eclipse/blob/master/docs/Getting-Started-with-Groovy-Eclipse-Source-Code.md (on macOS High Sierra) getting an error: ERROR: org.eclipse.equinox.p2.director code=10053 Cannot complete the…
yurgis
  • 4,017
  • 1
  • 13
  • 22
0
votes
1 answer

m2e and Groovy-Eclipse plugins for Eclipse Neon.3 Release (4.6.3)

In order to solve the following Maven pom.xml import error: Plugin execution not covered by lifecycle configuration: org.codehaus.gmaven:groovy-maven-plugin:2.0:execute ... Maven Project Build Lifecycle Mapping Problem I'm trying to install…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

Neon.3 Release (4.6.3) - Plugin execution not covered by lifecycle configuration

While importing a Maven project to my Eclipse Neon.3 Release (4.6.3) I faced a folloing error: Plugin execution not covered by lifecycle configuration: org.codehaus.gmaven:groovy-maven-plugin:2.0:execute ... Maven Project Build Lifecycle Mapping…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
2 answers

Manual install of Groovy-Eclipse feature to STS 3.7.3

I'm learning Spring Boot using STS and working through a tutorial. One of the exercises in the tutorial demonstrates the inclusion of a .groovy controller. For it to run, I need to install the Groovy-Eclipse feature and, because I'm behind a…
angusrose
  • 143
  • 1
  • 3
  • 13
0
votes
0 answers

Java Code Completion in Groovy Files in Eclipse Mars

I don't get any Java code completion in a groovy editor in Eclipse Mars. It seems that in older Eclipse versions the Java completion was available: Eclipse content assist not working for Java objects within Groovy files I have a newly installed Mars…
Gregor
  • 2,917
  • 5
  • 28
  • 50
0
votes
0 answers

spring tool suit not working properly with groovy eclipse plugin

I am unable to make STS work correctly with the groovy eclipse plugin. Spring Tool Suite Version: 3.6.2.RELEASE Build Id: 201410091308 Platform: Eclipse Luna SR1 (4.4.1) It works properly until I install groovy plugin either from the STS dashboard…
archie_by
  • 1,623
  • 2
  • 11
  • 10