We can use the Builder annotation from Lombok to use the Builder Design Pattern in our Groovy codes. This post shows how to use the Lombok Builder annotation in Groovy. Hence, we need to depend on the Lombok library via
Run Groovy Without Installing On Windows
This post demonstrates how to temporarily configure Groovy to run on Windows. This is useful when we are unable to add or modify environment variables in Windows due to restrictions.
Groovy – @Singleton example
This post shows a simple example of Groovy class that uses the @Singleton annot
Immutable Objects Using Annotation In Groovy
In Groovy, it is possible to create an immutable using the groovy.transform.Immutable annotation. One possible use-case for this is when we want to create a object (with data initialized through the class constructor) that is passed to another application layer (e.g., service) but we don’t want that object modified in that layer.
Groovy – @Sortable example
Groovy @Sortable is something similar to Java’s Comparable interface.