Top "Groovy" questions

Groovy is an object-oriented programming language for the Java platform.

Global constants in Groovy

It is often desired to declare constants at the top of a script that can be referenced anywhere else in …

groovy global-variables
How to access java-classes in the default-package?

I'm working now together with others in a grails project. I have to write some Java-classes. But I need access …

java groovy default-package
How can I import one Gradle script into another?

I have a complex gradle script that wraps up a load of functionality around building and deploying a number of …

java ant groovy build gradle
Using "$" in Groovy

I see { } are used for closures, and then I believe when a $ is put in front of braces, it is …

grails groovy
How to create datetime string in soapui using groovy

Hi I am using SoapUI for testing web services. I need to create a customer record with email address and …

groovy soapui
Groovy - how to exit each loop?

I'm new to Grails/Groovy and am trying to find a node in a an xml file; I've figured out …

xml grails groovy
How to define and call custom methods in build.gradle

As part of my project, I need to read files from a directory and do some operations all these in …

groovy gradle
sort list by date in descending order - groovy madness

i´m not able to sort a list of Objects by a Date in descedent order lets say this is …

java date sorting grails groovy
Recommended way to stop a Gradle build

How can I stop a Gradle build after detecting a problem? I can use an assert, throw an exception, do …

groovy build gradle
Named parameters

I have method def test(String a, String b) { } and I would like to call this with a dynamic parameter …

groovy named-parameters