Sharing Grails HAL and JSON Renderers
Grails provides nice features for creating web services, customization is usually terse. According to the “Registering Custom Objects Marshallers” section of the Grails User Guide, custom object marshallers can registered using a simple closure. However, ...
WebSockets in Grails 3.0
For those who aren’t familiar, WebSockets are a long-lived, interactive, two-way channel between a client browser and end server that allows ongoing communication without polling. They’ve been around for a few years now ever since ...
Grails, PostgreSQL 9.4 and JSONB
On a recent grails project using postgreSQL 9.4 that took advantage of the jsonb datatype, we ran into an issue mapping data back and forth to our domain objects. We had several columns in postgreSQL ...
List of Groovy versions for each version of Grails
Recently when trying to debug an issue I was having in Grails, I found that the root cause was actually a Groovy bug. After checking the bug tracker, I discovered that the bug was fixed ...
Deploying Grails 3 Applications (and other fat jars) to Heroku
(https://heroku.com) users that have run into the 15 minute build timeout should not have to change their source or technology choice to continue using Heroku. This post outlines a method using (http://gradle.org) to work-around ...
Another Method for Admin screens with Grails
I came from a background of making sites with Django and after I starting going head-first into Grails, one of the things I missed was a really good and easy to make an admin section. ...
Customize your Grails test reports
I’ve been writing a lot of Spock tests, and I discovered that Grails’ power asserts can be a little confusing when you’re dealing with long string representations. For example, given the simple test code: the ...
Creating RESTful Applications with Grails
More and more, companies and organizations are using RESTful APIs to provide access to their data and services, including Twitter, LinkedIn, JIRA, and Salesforce.com. REST provides a useful abstraction and helps simplify the creation of ...
Grails cdn-asset-pipeline Plugin for Improving Web Site Performance
We’re always looking to get our software to run faster. For web sites, part of that equation is to move static content to a content delivery network (CDN). A proper CDN is designed to serve ...
Experiences with Publishing a Grails Plugin
I’ve really enjoyed working in the Grails ecosystem. There are a variety of reasons of which I won’t write in this post. I am going to focus on one and that is the plugin system. Plugins ...