Skip to content

Latest commit

 

History

History
65 lines (56 loc) · 1.7 KB

how-to-publish.md

File metadata and controls

65 lines (56 loc) · 1.7 KB

Summary

  1. Install gpg
  2. Edit the plugins.sbt file
  3. Get next version identifier
  4. Enable distribution on sonatype.org
  5. Tag the release
  6. Check to see if it's there

From Jonathan's Notes

Install GPG

Add the following lines to ~/.sbt/sonatype.sbt

import com.typesafe.sbt.pgp._

pgpPassphrase := Some("".toArray)

credentials += Credentials("Sonatype Nexus Repository Manager", 
                           "oss.sonatype.org", 
                           "jenkinss142",
                           "xxxx")

Edit the plugins.sbt file

~/.sbt/plugins/build.sbt

resolvers += Resolver.url("scalasbt", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases")) (Resolver.ivyStylePatterns)

addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8")

sbt passphrase

pgp-cmd key-gen

// don't use passphrase

// may have to publish your key ???

Get next version identifier

From: http://central.maven.org/maven2/edu/berkeley/cs/chisel_2.10/

cd ~/bar/chisel
edit ~/bar/chisel/project/build.scala and put in version number
sbt publish-signed

--

Enable distribution on sonatype.org

Go to https://oss.sonatype.org/

login with jenkins142 account (from .sbt/....)
click on staging repositories
hit refresh
select corresponding chisel jar file
hit close
hit refresh 
wait for release button to appear
hit release

Tag the release

incorporate git hash tag with git repo with version number

Check to see if it's there

Go to [https://repo1.maven.org/maven2/edu/berkeley/cs/] look for chisel-hwiotesters_2.11/