in site/src/site/pages/indy.groovy [104:113]
This means that whatever command you use (groovy, groovyc, groovysh or groovyConsole), invokedynamic support is not available out of the box.
To use a Groovy distribution that was compiled with invokedynamic for its Groovy sources you have to switch the jars manually.
The distribution makes use of the jars in the lib directory, while the indy jars are available in the indy directory.
You have three things to do:
'''
ul {
li 'remove or rename the groovy-*.jar files in the lib directory'
li 'replace them with the indy version from the indy directory'
li 'remove the -indy classifier from jar names'
}