can anyone help how to setup maven project, which build groovy scripts?

I have working maven project, which builds java sources. I would like to build groovy scripts as well, into class files.

Internet is filled with not-working solutions, I cannot see any mention in documentation anywhere. Can anyone advise?