A ScriptHandler allows you to manage the compilation and execution of a build script.
Groovy Documentation