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.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
project
src/main/g8
.gitignore
.travis.yml
LICENSE.md
README.md
build.sbt

README.md

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 http://choosealicense.com/licenses/cc0-1.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",
                           "oss.sonatype.org",
                           "<your username>",
                           "<your password>")

> pgp-cmd send-key keyname hkp://pool.sks-keyservers.net

Notes

  • Add the Sonatype resolver to use snapshot repositories that haven't been published to maven central.
resolvers += 
  "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
  • 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.