Looks like there is an issue with the IntelliJ! This works by changing the jar. Thanks for sharing this. Just adding more bits.
Just in case, the jar is in the lib folder. I've downloaded the groovy-2.4.13 and rename the jar from /groovy-2.4.13/lib/groovy.2.4.13 to /groovy-2.4.13/lib/groovy