From 90799690dde14f0d27614cba34f8783b11a01bae Mon Sep 17 00:00:00 2001 From: Sebastian Utz Date: Fri, 28 Jun 2024 12:17:22 +0200 Subject: [PATCH] Use in-memory ascii-armored keys instead of using the gpg agent Follow up of #85. This setup was successfully tested on a jenkins slave with the required environment variables set. --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index cd8eec3..8aae549 100644 --- a/build.gradle +++ b/build.gradle @@ -128,6 +128,8 @@ nexusPublishing { } signing { - useGpgCmd() + def signingKey = findProperty("signingKey") + def signingPassword = findProperty("signingPassword") + useInMemoryPgpKeys(signingKey, signingPassword) sign(publishing.publications) }