Introduction and usage example of Grails Plugin Maven Deployer, a small scripting tool I created. The tool allows you to publish a plugin in a self-hosted maven repo by packaging it as a JAR file.
A Grails plugin to inject the auto-timestamp properties using a configurable, joda-time compatible AST transform that can be used both by a project and by other plugins.
I was playing around with Grails and JSON and came up with a small method to convert a given collection of objects into JSON (typically, domain class objects, but it would work with anything). It's nothing new or fancy, but maybe usefull for anybody who is starting to explore Grails JSON capabilities. For the sake […]
I often find myself trying to know which directories are consuming most of my persistent memory (I would say hard disk, but it isn't a disk - and probably, even hard - anymore), and always get disappointed with myself for not being able to remember the way to do it in the terminal :) . […]
In modern versions of Grails, you can use the Groovy annotation EqualsAndHashCode for generating the equals and hashCode methods of your domain classes using an AST transformation, but if you are in any 1.x.x Grails version (that uses a Groovy version prior to 1.8.0), you won't be able to use this. I've seen tons of […]
One of the things that opens the gate to truly code reusation in Bash is, in my opinion, the hability of evaluate and set variables in a dynamic way. By dynamic, I mean that the variable name is constructed dynamically, or passed as a parameter, and ends up being in another variable (for example, a […]
Nunca he sido seguidor de Pearl Jam, la verdad. Es de esos grupos que cuando alguien me lo recomendó, ya tenían una carrera consumada, y nunca sabía por qué album empezar. Los intentos que he hecho nunca habían terminado siendo fructíferos, y lo había dejado correr hasta que mi hermano, quien si no :-) (que […]
And with that huge title :-D , I want to talk about a little technique that I like to use in Groovy by taking advantage of the method parameters with default values feature. By method configuration and method body I am refering to two typical parts of a business logic method (for example, a method […]