There’s not many Groovy info here, would be nice if you’d share your further experiences.
BTW I’m also starting with OpenHAB in general and jsr223 groovy in particular, I just figured out how to create a “library” groovy file, posted here: Groovy scripts: how to import another groovy file? - #8 by ndru