The easiest way is to create application resources in conf/ApplicationResources.groovy
.
modules = {
'slider_resources' {
resource url: 'css/slider.css'
resource url: 'js/slider.js'
}
}
Which can be easily included in your GSP files with:
<r:require module="slider_resources" />
To use this mechanism the resources plugin needs to be installed.