Make Groovy application more idomatic

This change updates the Groovy application entry point to be a bit
more idomatic.