Skip to content

Commit 661bbec

Browse files
authored
Merge pull request #663 from webauthn4j/skip-signing-if-key-missing
Skip artifacts signing if key parameters missing
2 parents 03c8a8e + 0722e5c commit 661bbec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ configure(webAuthn4JSpringSecurityLibraryProjects) {
167167
sign publishing.publications.standard
168168
}
169169

170+
tasks.withType(Sign) {
171+
onlyIf { pgpSigningKey != null && pgpSigningKeyPassphrase != null }
172+
}
173+
170174
publishStandardPublicationToSnapshotRepository.onlyIf { webAuthn4JSpringSecurityVersion.endsWith("-SNAPSHOT") }
171175
publishStandardPublicationToMavenCentralRepository.onlyIf { !webAuthn4JSpringSecurityVersion.endsWith("-SNAPSHOT") }
172176

0 commit comments

Comments
 (0)