joergrech/KickstartWithBootstrap — pull request #40 by csherstan (2013-06-06 14:52:59+00:00)
Title: Reworking how resources are processed.

Dependency injection for customPropertyEditorRegistrar was being handled by directly copying a copy of resources.groovy into the project using the kickstart script. An improved way to do this in a plugin is setup your dependency injection in the doWithSpring closure of your plugin file (KickstartWithBootstrapGrailsPlugin). This way we do not need to copy files in and potentially clobber things in the existing resources.groovy.

In order to do this CustomDateEditorRegistrar could not be in the default package. I refactored all the code to put src files in the com.joergrech.kickstartwithbootstrap package (this is the recommended style of package names). Note that the default, no package, should generally not be used.

The way that the bootstrap resources are included has been changed to conform with the standard way of doing it. Rather than adding a line to Config.groovy to the grails.config.defaults.locations array we simply rename the file (and modify it's innards a bit) so that Grails will automatically pick up the resources itself.

Additionally, lesscss-resources has now been upgraded to use less-css:1.3.3 and I have updated BuildConfig.groovy accordingly.

Finally, there were several places where the deprecated ApplicationHolder was being used. I removed those references and replaced them with preferred methods of obtaining the various resources.