5.4.2 Working with Gradle Tasks - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith, Lari Hotari
Version: 3.1.7
5.4.2 Working with Gradle Tasks
As mentioned previously thegrails
command uses an embedded version of Gradle and certain Grails commands that existed in previous versions of Grails map onto their Gradle equivalents. The following table shows which Grails command invoke which Gradle task:Grails Command | Gradle Task |
---|---|
clean | clean |
compile | classes |
package | assemble |
run-app | bootRun |
test-app | test |
test-app --integration | integrationTest |
war | assemble |
$ gradle test
grails
command:$ grails gradle compileGroovy
$ grails
| Enter a command name to run. Use TAB for completion:
grails> gradle compileGroovy
...
tasks
task:gradle tasks