Skip to content

Commit a6c2ecb

Browse files
Merge branch 'master' into 0.19.x
2 parents 6f10d32 + 187bd85 commit a6c2ecb

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

project/scripts/sbtPublish

+9-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ if [ ! "$NIGHTLYBUILD" = "yes" ] && [ ! "$RELEASEBUILD" = "yes" ]; then
1818
exit 1
1919
fi
2020

21-
# Setup gpg
22-
export GPG_TTY="$(tty)"
23-
echo "$PGP_SECRET" | gpg --batch --import
21+
# Setup gpg (disabled, we use bouncycastle instead)
22+
# export GPG_TTY="$(tty)"
23+
# echo "$PGP_SECRET" | gpg --batch --import
24+
25+
# Setup bouncycastle instead of gpg to do signing, because gpg explodes when
26+
# doing too many signing requests in parallel (https://github.com/sbt/sbt-pgp/issues/168)
27+
mkdir -p "$HOME/.sbt/gpg"
28+
echo "$PGP_SECRET" > "$HOME/.sbt/gpg/secring.asc"
2429

2530
# run sbt with the supplied arg
2631
SBT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >& /dev/null && pwd)/sbt"
27-
"$SBT" "$RELEASE_CMD"
32+
"$SBT" -DSBT_PGP_USE_GPG=false "$RELEASE_CMD"

0 commit comments

Comments
 (0)