I am getting this exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 and java.lang.NoClassDefFoundError: Coul
are you using some third party library that brings in org.codehaus.groovy dependencies? If yes, you can try and replace the required groovy dependencies with the most current releases yourself.
In my case it was the org.liquibase:liquibase-groovy-dsl, so I did this:
org.liquibase
liquibase-groovy-dsl
2.1.1
org.codehaus.groovy
groovy
org.codehaus.groovy
groovy-sql
org.codehaus.groovy
groovy
3.0.3
org.codehaus.groovy
groovy-sql
3.0.3