not about groovy but for porting start with this thread:
think that might solve any driver porting issues you are having. on groovy see this and the various links on this page:
http://docs.smartthings.com/en/latest/getting-started/groovy-basics.html?highlight=groovy
1 Like