Skip to content

Commit

Permalink
Fix signing the maven artifact during release action
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed May 3, 2021
1 parent 157ebb6 commit 1760b9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions checksum.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
</trusted-keys>
<dependencies>
<dependency group='' module='caffeine_local' version=''>
<sha512>4FD71D2654435626B5FC1D5FB47809D322D9AC3AEDE1A45D1A45070B1820C922522C7D1586CD1C074F3F27D9E73C8F51F554AEE0F07A08ECB6593CAF0638825D</sha512>
<sha512>6CB83B6D5054C63C13AF5FD39F11065556137EDD423385F5D960A656FAFDDF5A5DDCCD1DDEDDAFDCBD511D0FEF005C58FAC9E3FB0BDF1D469AF24450DFBC2325</sha512>
<sha512>F8FEFDB21CB04D9C229D3C27DC03BDF141A943AED99D29B1349CAFB10758901AE8A564C0C00FF55F574D1CBCE4BEF9E33B6F6CF92B8ABD31A8D98009870DB800</sha512>
</dependency>
Expand Down
9 changes: 6 additions & 3 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ publishing {
signing {
// https://github.com/gradle/gradle/issues/11387
required { false }
if (version.releaseBuild) {
sign publishing.publications.mavenJava
}

def signingKey = findProperty("signingKey")
def signingKeyId = findProperty("signingKeyId")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
sign publishing.publications.mavenJava
}

javadoc {
Expand Down

0 comments on commit 1760b9c

Please sign in to comment.