Skip to content

Commit 64a1c4d

Browse files
committed
Restore setup of GPG keys in sbt
Signed-off-by: Wojciech Mazur <wmazur@virtuslab.com>
1 parent 14ddab7 commit 64a1c4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

project/Build.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import java.nio.file._
33
import Process._
44
import Modes._
55
import ScaladocGeneration._
6+
import com.jsuereth.sbtpgp.PgpKeys
67
import sbt.Keys.*
78
import sbt.*
89
import sbt.nio.FileStamper
@@ -340,6 +341,8 @@ object Build {
340341
password <- sys.env.get("SONATYPE_PW")
341342
} yield Credentials("Sonatype Nexus Repository Manager", "central.sonatype.com", username, password)
342343
).toList,
344+
PgpKeys.pgpPassphrase := sys.env.get("PGP_PW").map(_.toCharArray()),
345+
PgpKeys.useGpgPinentry := true,
343346

344347
// Do not cut off the bottom of large stack traces (default is 1024)
345348
javaOptions ++= "-XX:MaxJavaStackTraceDepth=1000000" :: agentOptions,

0 commit comments

Comments
 (0)