Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Grails 2.1.0 Require Groovy 1.8?

I recently updated a Grails app to 2.1.0, but when I war the project I get the following error:

java.lang.NoClassDefFoundError: org/codehaus/groovy/transform/powerassert/ValueRecorder

  • Groovy Version 1.7.5
  • Grails Version 2.1.0

Are these two versions compatible?

like image 256
John Giotta Avatar asked Dec 19 '12 16:12

John Giotta


1 Answers

No. Grails 1.3.x uses Groovy 1.7, Grails 2.0.x and 2.1.x use Groovy 1.8, Grails 2.2 uses Groovy 2.0 and Grails 2.3 will use Groovy 2.1. You should probably do a grails dependency-report to see what is pulling in Groovy 1.7, and put the appropriate excludes in your BuildConfig dependency declarations.

like image 180
Ian Roberts Avatar answered Oct 20 '22 23:10

Ian Roberts