Skip to content

Commit a61f627

Browse files
committed
#4: Added support for MAVEN_CENTRAL_PGP_PASSWORD
1 parent bc517e3 commit a61f627

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ nexusPublishing {
159159
// to publish to local maven repo skip signing: ./gradlew publishToMavenLocal -x signGraphqlJavaPublication
160160
signing {
161161
def signingKey = System.getenv("MAVEN_CENTRAL_PGP_KEY")
162-
useInMemoryPgpKeys(signingKey, "")
162+
def signingPassword = System.getenv("MAVEN_CENTRAL_PGP_PASSWORD")
163+
useInMemoryPgpKeys(signingKey, signingPassword == null ? "" : signingPassword)
163164
sign publishing.publications
164165
}
165166

0 commit comments

Comments
 (0)