Jedox is using a customized Groovy implementation.
This does not contain all functionality of groovy!!!!!!
The documentation
https://knowledgebase.jedox.com/knowledgebase/job-groovy/
does not state a hint that not all native groovy functions are supported.
e.g AntBuilder() is missing in Jedox 7.
Either change the doku, give a list of all supported functions or provide the full function catalogue of groovy by adding the missing libraries.
Also the groovy version used would be nice to now.