Details
Description
If a plugin has an annotation defined in src/groovy then grails will fail to start when the plugin is used in a project.
Here is the error:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, /Users/mike/.grails/1.2.0/projects/Patheos/plugins/solr-0.1/src/groovy/com/patheos/grails/solr/Solr.groovy: -1: Annotation @org.codehaus.groovy.grails.plugins.metadata.GrailsPlugin is not allowed on element ANNOTATION
[groovyc] @ line -1, column -1.
And here is the Annotation class it's complaining about:
package com.patheos.grails.solr
import java.lang.annotation.*
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Solr {
String field();
}
Note, if I change the class to a java class it works now. This worked on 1.1.1 with a groovy annotation class. Assuming the GrailsPlugin annotation is new.