Hi Guillaume, Here is the idea in my mind, i.e. we can configure the CompilerConfiguration instance to add default imports ;-) ``` def config = new CompilerConfiguration() def imports = new ImportCustomizer() imports.addImports( 'groovy.transform.TypeChecked', 'groovy.transform.CompileStatic', 'groovy.transform.CompileDynamic' ) config.addCompilationCustomizers(imports) ```
Cheers, Daniel.Sun ----- Apache Groovy committer & PMC member Blog: http://blog.sunlan.me Twitter: @daniel_sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html