By having a annotation processor, we can update the org.codehaus.groovy.runtime.ExtensionModule file with required entries during compilation time...
Having said that I will be happy if we have some arrangement like this... 1. We will have below directories in classpath a. META-INF/groovy/extensionclasses a. META-INF/groovy/staticextensionclasses 2. Inside these directories, we can have one file for each Extension class that we have. File content will have module name and version as its content. These values (if required) can be obtained using properties of declared annotation. 3. This way, maintaining this file through annotation processor is very easy and we can avoid manual creation of file by developers ------------- It has one disadvante... Groovy Runtime should list the files in these directories of each classpath entry and do the initialization... If you feel, this can be done without much runtime overhead, then further discussions can happen in this direction. ----- Thanks, Adithyan K India -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html