While developing, you may need do local publish. Run
sbt publish-local
.
Alternatively you can run sbt
then from SBT command prompt run
+ publish-local
.
To delete the local publish:
$ find ~/.ivy2 -name *annovention* -delete
See: https://github.com/sbt/sbt.github.com/blob/gen-master/src/jekyll/using_sonatype.md
Create ~/.sbt/0.13/sonatype.sbt (for SBT 0.12: ~/.sbt/sonatype.sbt) file:
credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", "<your username>", "<your password>")
Then:
- Copy content of
- dev/build.sbt.end to the end of build.sbt dev/plugins.sbt.end to the end of project/plugins.sbt
- Comment out this in build.sbt.
publishArtifact in (Compile, packageDoc) := false
- Run
sbt publish-signed
. Alternatively you can runsbt
then from SBT command prompt run+ publish-signed
. - Login at https://oss.sonatype.org/ and from "Staging Repositories" select the newly published item, click "Close" then "Release".