I'd like to know if there is any way to add methods to library classes using Groovy traits.
From what I read here @Mixin is used for this, or you can use the runtime mixin approach with metaclass. Since @Mixin is now deprecated in favor of traits, any chance to achieve the same behavior by using traits or is runtime mixin the only option?
Thank you