From 0574b1babc1b1fd684870225aebca1271223e103 Mon Sep 17 00:00:00 2001 From: Smruti Ranjan Sahoo Date: Fri, 23 Apr 2021 18:41:39 -0700 Subject: [PATCH] Base64 encoding of the GPG key: Travis can't parse the original format of the GPG key. As a workaround it will use the base64encoded key. The build script will have to decode the key and use it. --- build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 90f0fb5..dc56c05 100644 --- a/build.gradle +++ b/build.gradle @@ -173,7 +173,8 @@ subprojects { signing { if (project.hasProperty('signingKey') && project.hasProperty('signingPassword')) { - def signingKey = findProperty("signingKey") + def signingKeyEncoded = findProperty("signingKey") + def signingKey = new String(signingKeyEncoded.decodeBase64()) def signingPassword = findProperty("signingPassword") useInMemoryPgpKeys(signingKey, signingPassword)