addSbtPlugin("org.hammerlab.sbt" % "maven" % "5.0.0")
Settings for publishing to Maven repositories (especially Maven Central):
- necessary POM settings
- add Sonatype "releases" and "snapshots" resolvers
sbt +publish
will publish a snapshot to Sonatype for each Scala cross-version, and sbt +publishSigned sonatypeRelease
will publish to Sonatype-staging and then release to Maven Central.
Additionally, sbt mavenLocal
wraps publishM2
, but only operates on -SNAPSHOT
-versioned projects.