groovy: added --invokedyamic flag

Groovy can take advantage of Java 1.7's invokedynamic support
if you swap out the jars with the `-indy` versions.

Closes #19348.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>