If you see the following error during compile :
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileTestGroovy'.
> org/codehaus/groovy/ast/MethodCallTransformation
Add the folling line to your gradle file :
ext['groovy.version'] = '2.5.6' //i.e your grovy version.
Another issues with java 11
Unable to load class groovy.xml.jaxb.Jaxb GroovyMethods due to missing dependency javax/xml/bind/JAXBContext
You can fix this by adding the following dependency on the latest groovy version