Plugins You can find out about all the publicly available Grails plugins.

Static Content Distribution Plugin

0 vote
compile "org.grails.plugins:static-content-distribution:0.1"

 Documentation  Source  Issues


This plugin hooks into the Distribution phase of the Resources Plugin and distributes the static resource to a specified location.


grails install-plugin static-content-distribution


v0.1 is not compatiable with the zipped-resources plugin. To use this version of the plugin, you will have to uninstall the zipped-resourced plugin.


The plugin is enabled by default, but for it to work, you must configure a directory for the plugin to distribute the content to. If this configuration is not present, the plugin will do nothing. The following configures the static content to be distributed to the /app/distribution directory: = '/app/distribution'

As mentioned the plugin is enabled by default, to disable it configure the following:

grails.resources.mappers.staticcontent.enabled = false


  • 0.1 - Initial publication of this plugin.