You must have rights on Sonatype to publish under com.typesafe
.
You should have a ~/.sbt/0.13/sonatype.sbt
(or similar filename)
with the right credentials += ...
.
To publish a dbuild release,
- Be sure you are running Java 8
- Run
sbt
- In sbt, run
^publishSigned
- Check the staging repo in the Sonatype web UI to ensure files are as expected (optional)
- Close and release the staging repo (using
sbt-sonatype
commands or the Sonatype web UI)
Do not try to publish snapshots to Sonatype. Instead, add a custom version
suffix (such as -RC1
).
If everything goes well, then also:
- Update CHANGELOG.md
- Tag the release
- Push the tag to GitHub,
- Make a GitHub release from the tag
- Run
packageZipTarball
- Attach the resulting
.tgz
and the.zip
to the GitHub release - Publish the website (see below).
You can publish a test version locally to any directory of your choice, by using:
set every publishTo := Some(Resolver.file("dbuild-publish-temp", new File("/home/user/here/"))(Resolver.ivyStylePatterns))
^publish
If you would like to publish to Artifactory instead, for instance if you you need to publish dbuild snapshots, or if you do not have the right permissions on Sonatype, you can use:
set every publishTo := Some(Resolver.url("somelabel", new URL("https://artifactoryhost/artifactory/repository/"))(Resolver.ivyStylePatterns))
set every credentials := Seq(Credentials(Path.userHome / "some" / "path" / "credentials-file"))
Then, proceed with ^publish
as usual to issue the snapshot to your Artifactory server.
The documentation pages on the dbuild website must be published separately. (This is done only for final releases.)
The command to build the doc is docs/makeSite
, and it requires you
have sphinx installed (e.g. with pip3 install sphinx
). On the
gh-pages branch, add the generated files in a version-numbered
directory and update index.html
and versions.js
.