Changing plugin to make it compatible to Grails 2.4.2.

I also changed plugin version because unfortunately, it makes incompatible with Grails < 2.0.

I'm not sure if this is what I was supposed to do, but since I was migrating my project I had to change the plugin code to make it compatible I thought I should pull this request.