Resources Modules Manager Plugin

  • Tags : resources, maven
  • Latest : 0.2.1
  • Last Updated: 03 November 2012
  • Grails version : 2.0 > *
1 vote
Dependency :
compile ":modules-manager:0.2.1"

Documentation Source

Summary

Creates resources modules using packaged resources from Maven central repository.

Installation

grails install-plugin modules-manager

Description

Usage

Define js & css dependency.

grails-app/config/BuildConfig.groovy :

…
dependencies {
    compile 'org.webjars:bootstrap:2.1.1'
    compile 'org.webjars:backbonejs:0.9.2'
    compile 'org.webjars:jquery-mobile:1.2.0'
}
...

Create resources modules

grails refresh-modules

Manager will create config/ModulesResources.groovy and js/css files in web-app/modules/

To re-create and force override resources modules

grails refresh-modules --force

Configuration

conf/BuildConfig.groovy

…
modules {

// Trigger modules refresh on project compile refreshOnCompile = true

// force override resources modules on refresh on compile forceOverride = true

} ...

Note

Module manager only support web resources from webjars.org