When working with Quartz Jobs, you may want to take advantage of Strings that are located in the messages.properties file. In order to do this, you need to get a reference to the messageSource bean and then call the getMessage() method with the name of the message that you want to use, whatever objects you need to pass to the message and finally the locale. (examples below)

If you would like to store JSON data in an external EhCache Server you would need to use either REST or SOAP calls. The below example uses REST calls and the HTTPBuilder library. It assumes that you have your EhCache Server running at the following location: http://localhost:8080/ehcache/rest.

The name of the cache that I’m using in this example is just sampleCache.

Recently I encountered a situation where a plugin was bringing in a version of a jar file that was causing my application to misbehave. In order to fix this issue I had to remove the errant jar file from the final build. This is the code that you can use to do that. You have to place this code snippet in your BuildConfig.groovy. Hope this helps someone else.