(Quick Reference)

grails-<script-name>

Purpose

Allows execution of arbitrary Grails scripts from the Gradle command line.

Description

$ gradle grails-refresh-dependencies

Pass arguments to Grails scripts

$ gradle grails-create-controller -PgrailsArgs="FooController"

Set environment for Grails script

$ gradle grails-run-app -PgrailsEnv=production