I am upgrading a project from grails 2.4.0 to 2.5.4 shortly after I upgraded it from 2.3.7 -> 2.4.0 and I am getting this error.
[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[groovyc] Compile error during compilation with javac.
[groovyc] /home/michal/Desktop/ikariera/ikariera/target/work/plugins/cache-1.1.7/src/java/grails/plugin/cache/GrailsAnnotationCacheOperationSource.java:220: error: no suitable method found for parseCacheAnnotations(AnnotatedElement)
[groovyc] Collection<CacheOperation> annOps = annotationParser.parseCacheAnnotations(ae);
[groovyc] ^
[groovyc] method CacheAnnotationParser.parseCacheAnnotations(Class<?>) is not applicable
[groovyc] (argument mismatch; AnnotatedElement cannot be converted to Class<?>)
[groovyc] method CacheAnnotationParser.parseCacheAnnotations(Method) is not applicable
[groovyc] (argument mismatch; AnnotatedElement cannot be converted to Method)
[groovyc] Note: /home/michal/Desktop/ikariera/ikariera/target/work/plugins/scaffolding-2.1.0/src/java/org/codehaus/groovy/grails/scaffolding/AbstractGrailsTemplateGenerator.java uses or overrides a deprecated API.
[groovyc] Note: Recompile with -Xlint:deprecation for details.
[groovyc] 1 error
[groovyc]
[groovyc]
| Compiling 232 source files.
| Error Compilation error: startup failed:
Compile error during compilation with javac.
/home/michal/Desktop/ikariera/ikariera/target/work/plugins/cache-1.1.7/src/java/grails/plugin/cache/GrailsAnnotationCacheOperationSource.java:220: error: no suitable method found for parseCacheAnnotations(AnnotatedElement)
Collection<CacheOperation> annOps = annotationParser.parseCacheAnnotations(ae);
^
method CacheAnnotationParser.parseCacheAnnotations(Class<?>) is not applicable
(argument mismatch; AnnotatedElement cannot be converted to Class<?>)
method CacheAnnotationParser.parseCacheAnnotations(Method) is not applicable
(argument mismatch; AnnotatedElement cannot be converted to Method)
I tried uprading chache plugin from 1.1.3 to 1.1.{4,5,6,7,8} but everything gives the same error. I would be glad for an idea, where could lie the problem.