Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
Update to sbt-pgp 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrs committed Dec 20, 2019
1 parent ab46532 commit 4a8fd0b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ script:
fi
- |
if [[ "$TRAVIS_JDK_VERSION" = "openjdk11" && $(cat version.sbt) =~ "-SNAPSHOT" ]]; then
export PGP_SECRET_RING_PATH="$(mktemp -d)/secring.asc"
echo "${PGP_SECRET}" | base64 --decode > "${PGP_SECRET_RING_PATH}"
openssl aes-256-cbc -K $encrypted_4fb843316bad_key -iv $encrypted_4fb843316bad_iv -in .travis/secret-key.asc.enc -out .travis/secret-key.asc -d
echo "$PGP_PASSPHRASE" | gpg --passphrase-fd 0 --batch --yes --import .travis/secret-key.asc
if [ "$TRAVIS_BRANCH" = "master" ]; then
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
sbt ++$TRAVIS_SCALA_VERSION publishSigned
Expand Down
Binary file added .travis/secret-key.asc.enc
Binary file not shown.
4 changes: 3 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ lazy val publishSettings = Seq(
<name>Takeru Sato</name>
<url>https://github.com/tkrs</url>
</developer>
</developers>
</developers>,
pgpPassphrase := sys.env.get("PGP_PASSPHRASE").map(_.toCharArray),
pgpSecretRing := sys.env.get("PGP_SECRET_RING").fold(pgpSecretRing.value)(file)
)

lazy val noPublishSettings = Seq(
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.3")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.8.1")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.12")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.3.7")
9 changes: 0 additions & 9 deletions sonatype.sbt

This file was deleted.

0 comments on commit 4a8fd0b

Please sign in to comment.