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:41:11 -0700 |
commit | 48d348c3f4c3990850f9100c3cdc314004b19c30 (patch) | |
tree | f1d690e4997ff72ca10e24c3a28b5afd07a61799 | |
parent | 705e615fe0be55ea0116d2810d24a30cf11f24d3 (diff) | |
download | tracing-48d348c3f4c3990850f9100c3cdc314004b19c30.tar.gz tracing-48d348c3f4c3990850f9100c3cdc314004b19c30.tar.bz2 tracing-48d348c3f4c3990850f9100c3cdc314004b19c30.zip |
Migrate from sbt-pgp to sbt-gpgv0.1.1
-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") |