cleanup

Using dependsOn in the plugin descriptor doesn't work for plugins targeting 2.0+ apps, you have to put plugin and jar dependencies in BuildConfig.groovy. Depending on the hibernate plugin is tricky, because the version doesn't stay dynamic by using the grailsApplication variable - the value you're using locally gets hard-coded into the POM file instead. So you need to depend on the jars the plugin depends on instead.

But then after I pushed I realized that since you're supporting both version 3 and 4, you can't have any dependencies. That's fine though - just document that it's an implicit dependency, or do nothing since if they use a plugin called 'hibernate-metrics' and don't use Hibernate, they're unlikely to have read your docs.