Develop Groovy plugin for Jira server

Hello everyone,
I want to develop a plugin for Jira server, which executes a simple groovy script?
Should I use the Atlassian SDK and with atlas-create-jira-plugin, or there maybe is another way?

You can simply use My Groovy Jira Plugin. It is open source Jira plugin with Groovy Engine.

https://marketplace.atlassian.com/apps/1218755/mygroovy?hosting=server&tab=overview