Re: [GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default

2019-10-30 Thread Milles, Eric (TR Tech, Content & Ops)
Are you proposing to add this to CompilerConfiguration.DEFAULT or somewhere 
else?


Re: [GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default

2019-10-30 Thread Daniel.Sun
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


[GitHub] [groovy-website] tiurikov opened a new pull request #17: add Infrastructor to Groovy ecosystem

2019-10-30 Thread GitBox
tiurikov opened a new pull request #17: add Infrastructor to Groovy ecosystem
URL: https://github.com/apache/groovy-website/pull/17
 
 
   Dear Groovy maintainers,
   
   I would like to add Infrastructor to Groovy ecosystem. I believe that 
Infrastructor demonstrates the power of Groovy and fits the ecosystem very 
well. Thanks!
   
   Best regards, Stanislav. 


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services