Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Template for Scala projects published on Sonatype / Maven Central

Resources

License

Packages

No packages published

Languages