Q:

How to automate Grails build?

What tools shall be used to automate Grails build? Ant? Shell? Would be good to read some official documentation about it.

A:

Out-of-the-box Grails provides a build system that can be used to compile, run tests, create a .war, deploy to tomcat, etc.
This build system is implemented using GAnt, which is a Groovy DSL over Ant. You can extend/customise the build system by writing your own GAnt scripts. The scripts provided by Grails provide well defined hooks that you can use to customise the build lifecycle.
What exactly is it that you're trying to do?

