michaelcameron/grails-jesque — pull request #22 by xnickmx (2012-11-21 01:03:16+00:00)
Title: Enabled flag

I had a use case where in some circumstances I did not actually want to use the Jesque plugin with my app, but I did want to have it installed. I found this was problematic, especially when there was no Redis server available because Jesque would throw several exceptions. This change adds an "enabled" config setting to solve this problem.

Here is the text from my commit:

Previously, there was no way to have this plugin installed in an
application, but unused. With the plugin installed, but Redis not
available, a series of exceptions, including JedisConnectionException,
were thrown when starting the application. I added the "enabled" config
setting which makes it possible for an application to have this plugin
installed, but choose not to use it.

I also modified BuildConfig to make the Hibernate plugin a "compile"
dependency rather than a "test" dependency. Without this change the
plugin would not compile for me.