Artifactory plugins are written as Groovy scripts in regular files and have a simple DSL to wrap users code in closures inside well-known extension points.
Scripts have a couple of helper objects that are globally bound (see the plugin script template).
Naming conventions
Note that Groovy scripts must follow the same naming conventionsas those specified for Java.