Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top