Skip to content

Commit d286ada

Browse files
authored
chore: change maven-central signing key to base64 (#427)
1 parent 1ead293 commit d286ada

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,13 @@ configure(publishedProjects) {
137137
}
138138

139139
signing {
140+
// base64 for workaround travis escape chars issue
141+
def signingKeyBase64 = System.getenv('MAVEN_SIGNING_KEY_BASE64')
140142
// skip signing for "local" version into MavenLocal for test-app
141-
required { !version.equals("local") }
143+
if (!signingKeyBase64?.trim()) return
144+
byte[] decoded = signingKeyBase64.decodeBase64()
145+
def signingKey = new String(decoded)
142146

143-
def signingKey = System.getenv('MAVEN_SIGNING_KEY')
144147
def signingPassword = System.getenv('MAVEN_SIGNING_PASSPHRASE')
145148
useInMemoryPgpKeys(signingKey, signingPassword)
146149
sign publishing.publications.release

0 commit comments

Comments
 (0)