diff options
author | Jakob Odersky <jakob@driver.xyz> | 2018-06-07 13:41:11 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@driver.xyz> | 2018-06-07 13:43:25 -0700 |
commit | a19f1470ff156186b944738a7d654913171dccc4 (patch) | |
tree | 21cece5fd701d576d85e40a94ff3b39d443c9c91 | |
parent | b957d9397a7a1ef6e6896497695ee16d8a29c922 (diff) | |
download | tracing-a19f1470ff156186b944738a7d654913171dccc4.tar.gz tracing-a19f1470ff156186b944738a7d654913171dccc4.tar.bz2 tracing-a19f1470ff156186b944738a7d654913171dccc4.zip |
Migrate from sbt-pgp to sbt-gpg
-rwxr-xr-x | .ci/build | 16 | ||||
-rw-r--r-- | project/publish.sbt | 2 |
2 files changed, 13 insertions, 5 deletions
@@ -7,13 +7,21 @@ sbt scalafmtCheck +test if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_TAG" =~ ^v[0-9].* ]]; then # Setup gpg keys gpg --keyserver keyserver.ubuntu.com --recv-key "DC7751D77486D755815C04AB488F99C904F077E8" - openssl aes-256-cbc -K "$encrypted_c6e2aee6c53f_key" -iv "$encrypted_c6e2aee6c53f_iv" -in .ci/sec.gpg.enc -out sec.gpg -d + openssl aes-256-cbc \ + -K "$encrypted_c6e2aee6c53f_key" \ + -iv "$encrypted_c6e2aee6c53f_iv" \ + -in .ci/sec.gpg.enc \ + -out sec.gpg -d gpg --import sec.gpg # Set up publishing settings and credentials cat <<EOF > credentials.sbt - useGpg := true - pgpSigningKey := Some(0x488F99C904F077E8l) + credentials in Global += Credentials( + "GnuPG Key ID", + "gpg", + "DC7751D77486D755815C04AB488F99C904F077E8", + "ignored" + ) credentials += Credentials( "Sonatype Nexus Repository Manager", "oss.sonatype.org", @@ -23,5 +31,5 @@ if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_TAG" =~ ^v[0-9].* ]]; then EOF # Publish and release - sbt +publishSigned sonatypeRelease + sbt +publish sonatypeRelease fi diff --git a/project/publish.sbt b/project/publish.sbt index 8a0d471..869f5ab 100644 --- a/project/publish.sbt +++ b/project/publish.sbt @@ -1,2 +1,2 @@ addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.0") -addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1") +addSbtPlugin("io.crashbox" % "sbt-gpg" % "0.1.5") |