Skip to content

Collection of SBT plugins for Meetup SBT projects.

License

Notifications You must be signed in to change notification settings

meetup/sbt-plugins

Repository files navigation

Meetup SBT Plugins Build Status Download

A base collection of useful SBT settings that many projects should be able to take advantage of.

This includes settings like:

  • Common settings
  • Organization
  • Getting version from make (our CI interface).
  • Scalariform settings
  • Docker native packager settings
  • Nexus publishing settings

To use you just add the plugin like any other.

Usage

Add the sbt plugin and a resolver for our internal nexus to your project/plugins.sbt file. You can find the latest version in the releases: https://github.com/meetup/sbt-plugins/releases

resolvers +=  Resolver.url(
  "meetup-sbt-plugins",
  new java.net.URL("https://dl.bintray.com/meetup/sbt-plugins/")
)(Resolver.ivyStylePatterns)

addSbtPlugin("com.meetup" % "sbt-plugins" % "{latest-version}")

Then you can just add the settings you'd like in your build.sbt.

enablePlugins(CommonSettingsPlugin)
enablePlugins(DockerPackagePlugin)
enablePlugins(NexusPlugin)

CoverallsWrapper

The Coveralls wrapper is a simple conditional runner. If the needed info for coveralls is present it'll run it, if not it fails gracefully which makes building locally much more pleasant.

enablePlugins(CoverallsWrapper)

If using Travis Pro (private repo)

enablePlugins(CoverallsWrapperPro)

To have pr published reports published to coveralls. Add the following to your build definition.

coverallsPublishPrReport := true