Re: Adding a Trait to a ClassNode during semantic analysis

2016-04-21 Thread John Smiljanic
After some digging I found org.codehaus.groovy.transform.trait.TraitComposer and from there I was able to backtrack to how groovy transforms statically defined traits. This is performed in canonalization, so it appears that a trait that is added to a class during semantic analysis may still have i

Re: Adding a Trait to a ClassNode during semantic analysis

2016-04-21 Thread Mario Garcia
I'm afraid the latest CompilePhase where you can use that approach is CONVERSION. That means that in order to achieve what you wanted, you should be using a global transformation. Then you can make the ClassNode to implement the given trait . Hope this helps :) Mario 2016-04-20 22:08 GMT+02:00 J

Re: Groovy YAML support

2016-04-21 Thread Henrik Martin
I can see JSON and XML tools being part of Groovy core since it's used for a plethora of things in many different parts of the ecosystem. Having worked with Spring Boot for a while, I too found myself having to search for tools for YAML processing. Like several people have already suggested, Sn

Deploying extension Methods

2016-04-21 Thread Gerald Wiltse
Hello All, I'm trying to deploy my first groovy extension methods to remove JVM. The methods work great in my IDE, but not on a remote JVM which has loaded the JAR. I use gradle to build, i can see that the metadata and class are included in the JAR, but I get the error: No signature of method:

Re: Groovy YAML support

2016-04-21 Thread Bob Brown
And why not? IFF people contribute their work and that work is of high enough standard? Therein lies the rub, of course… My AUD$0.02 BOB > On 21 Apr 2016, at 5:15 PM, Russel Winder wrote: > > On Tue, 2016-04-19 at 14:03 +0200, Paolo Di Tommaso wrote: >> Thanks for your suggestions. >> >> @

Re: Groovy YAML support

2016-04-21 Thread Russel Winder
On Tue, 2016-04-19 at 14:03 +0200, Paolo Di Tommaso wrote: > Thanks for your suggestions. > > @Guillaume Since Groovy has a very good support for Json and Xml, it > would > make sense to include a built-in support for Yaml as well. > JSON and XML being part of the standard Groovy distribution I