Asciidoctor: Placing Images Within Lists

A nice little feature that isn’t made quite clear in Asciidoctor’s nice and comprehensive user manual is the ability to place images in the middle of lists. Lists Asciidoctor lists can be either ordered or unordered and are created like so: And Images Asciidoctor images can be added using the macro: Why Not Both? Trying… Continue reading Asciidoctor: Placing Images Within Lists

Registering new Spring beans in Grails during runtime

Sit down, son; This talk’s been a long-time comin’. There may come a day when you find yourself having to register a new Spring bean during runtime of a Grails application. I’m gonna show you a method that’s been passed down in our family for generations. First, get hold of a reference to the GrailsApplication… Continue reading Registering new Spring beans in Grails during runtime

Fight Crime with GPG

Originally posted on Blog @Bintray:
So you deliver your awesome library to hundreds of users each day, but they’re a tough bunch and they’re all like: “Hey man, we gotta see some ID” So you kneel to the whims of the rabble; you generate your GPG key pair and sign each artifact you deliver, because…

Testing Grails JAX-RS resources with Spock

The Missing Infrastructure Developing with Grails is a real delight, and testing my delightful Grails applications with Spock makes the experience even better. Some of Grails’ test cases, such as the Controllers, require a specialized setup because you don’t test them in the same manner as you would test PO[GJ]Os; you must mock requests and… Continue reading Testing Grails JAX-RS resources with Spock

The mystery of the missing grails-app directory

During work on different Grails projects, I’d be confronted at times with the mysterious error: | Building WAR file….. | Error executing script War: : $USER_HOME/.grails/2.1.1/projects/some-project/resources/grails-app does not exist. At first I thought to myself “Oh, this is just a glitch; Let’s just manually re-create folder nd get on with it!”, but when the error… Continue reading The mystery of the missing grails-app directory