-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from kolotaev/iss-11
Move releases to Maven Central
- Loading branch information
Showing
4 changed files
with
40 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# How to release | ||
|
||
- Make sure you have a valid account in [Sonatype Nexus](https://oss.sonatype.org) | ||
- Make sure you have Nexus account credentials in `~/.sbt/$SBT_VERSION/sonatype.sbt` | ||
Example: | ||
```scala | ||
credentials += Credentials( | ||
"Sonatype Nexus Repository Manager", | ||
"oss.sonatype.org", | ||
"your-username", | ||
"your-password" | ||
) | ||
``` | ||
- List GPG keys with `sbt gpg --list-keys` | ||
- Check the presence of key for this library release (it's called `ride`). If not found: generate a new one with `sbt pgp-cmd gen-key` and then post it to GPG ubuntu keyserver with `sbt pgp-cmd send-key ride http://keyserver.ubuntu.com:11371` | ||
- Make sure tests are passing (locally and on CI) | ||
- Create a release at the Github | ||
- Checkout released tag locally | ||
- Publish to staging with `sbt publishSigned` | ||
- Promote to Maven Central with `sbt sonatypeRelease` | ||
- Test that the library is available in Maven Central | ||
- Repeat for all ride supported Scala versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1") | ||
|
||
// For releasing (Sonatype Nexus and Maven Central) | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3") | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1") |