46 votes

82% of Grails users

runtime ":resources:1.2.9"

 Documentation  Source  Issues


HTML resource management enhancements to replace g.resource etc.


To use the plugin, add this to your BuildConfig.groovy:

plugins {
   runtime ':resources:1.2.2'

Be sure to use the most recent release; due to a bug, this page may not show the most current release but it is currently 1.2.2

This plugin represents a new way of declaring and linking to static resources in your application and plugins. Resource dependencies can be declared (e.g. jQuery UI requires jQuery) and pages simply indicate which resource modules they require. The plugin does the rest, and provides a processing pipeline for advanced optimisations. There is a screencast by Bobby Warner which demonstrate the usage of Spring Security Core plugin and Resources plugins as well as some unit testing.

Full documentation

See also the resource mapping plugins: