Ant is the predominant build environment for Java projects. Groovy is a leading Scripting language for the JVM. The good news is that you can use them together easily and with many benefits.
Existing Ant Users (Java Projects)
If you are already familiar with using Ant with a traditional
build.xml file, then you can continue to do so with almost no changes. If you want you can begin to use the Groovy Ant Task.
Existing Ant Users (Groovy or mixed Groovy/Java Projects)
If you wish to pre-compile your Groovy scripts as part of your build process (it can help catch syntactic errors earlier if you do) then you need to know about the Groovyc ant task
Existing Groovy Users
A few articles related to this topic: