You are responding to a post which is two years old. A lot has changed in that time.
Most importantly, SmartThings is going through a MAJOR architecture change, and groovy is being phased out altogether. So none of the advice above is relevant any longer except for @rayzurbock ‘s post on WebCore. That’s still good, and a good place to start.
More about the changes: