Skip to content
Template for Scala projects published on Sonatype / Maven Central
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Template for Scala projects published to Sonatype / Maven Central.

Use sbt new augustnagro/smaven.g8 to create a minimal template with:

The settings are detailed here

License: Creative Commons Zero v1.0

For those new to publishing, read the sbt docs on publishing. A summary follows:

  • Make a Sonatype Nexus account here
  • Create ~/.sbt/<sbt version>/plugins/gpg.sbt with:
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
  • Create ~/.sbt/<sbt version>/sonatype.sbt with:
credentials += Credentials("Sonatype Nexus Repository Manager",
                           "<your username>",
                           "<your password>")

> pgp-cmd send-key keyname hkp://


  • Add the Sonatype resolver to use snapshot repositories that haven't been published to maven central.
resolvers += 
  "Sonatype OSS Snapshots" at ""
  • Cross build the project for different scala versions, if possible. Then run +publishSigned instead of publishSigned. See the Cross Building docs.
You can’t perform that action at this time.