Bintray For Plugins

This is currently in Beta mode.

sbt hosts their community plugin repository on
Bintray.
Bintray is a repository hosting site, similar to github, which allows users to contribute their own
plugins, while sbt can aggregate them together in a common repository.

This document walks you through the means to create your own repository
for hosting your sbt plugins and then linking them into the sbt shared
repository. This will make your plugins available for all sbt users
without additional configuration (besides declaring a dependency on your
plugin).

Make a release

Once your build is configured, open the sbt console in your build and run

sbt> publish

The plugin will ask you for your credentials. If you don’t know where
they are, you can find them on Bintray.

Login to the website with your credentials.

Click on your username

Click on edit profile

Click on API Key

This will get you your password. The sbt-bintray plugin will save your
API key for future use.

NOTE: We have to do this before we can link our package to the sbt
org.*

Linking your package to the sbt organization

Now that your plugin is packaged on bintray, you can include it in the
community sbt repository. To do so, go to the
Community sbt repository
screen.

Click the green include my package button and select your plugin.

Search for your plugin by name and click on the link.

Your request should be automatically filled out, just click send

Shortly, one of the sbt repository admins will approve your link
request.

From here on, any releases of your plugin will automatically appear in
the community sbt repository. Congratulations and thank you so much for
your contributions!

Linking your package to the sbt organization (sbt org admins)

If you’re a member of the sbt organization on bintray, you can link your
package to the sbt organization, but via a different means. To do so,
first navigate to the plugin you wish to include and click on the link
button:

After clicking this you should see a link like the following:

Click on the sbt/sbt-plugin-releases repository and you’re done! Any
future releases will be included in the sbt-plugin repository.

Summary

After setting up the repository, all new releases will automatically be
included the sbt-plugin-releases repository, available for all users.
When you create a new plugin, after the initial release you’ll have to
link it to the sbt community repository, but the rest of the setup
should already be completed. Thanks for you contributions and happy
hacking.