There are a few threads here worth reading:
and
I've found https://groovyconsole.appspot.com/ useful if i just want to validate straight Groovy code that doesn't have any dependencies on HE.