Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top