Well, really what you are talking about is common configuration that you want to share between builds and plugins are the mechanism for doing this. Two ways you can approach it:
- Add the configuration to a script plugin, publish it to your repository (e.g. artifactory) and then apply it from its http url.
- Add the configuration to a binary plugin, publish it to your repository and then apply the plugin as a buildscript dependency.
In either case, your plugin can either automatically add the jetty dependencies to your build or just make them available via an extension of some sort so that a project can easily add the jetty libraries with one line. Depends on what you need/want to do.
Script plugins are more simplistic, but you’ll have to publish them manually and they don’t get cached. Binary plugins are slightly more involved, but they can be published like any other artifact and they’ll get cached like any other artifact.