Skip to content

Commit fe0e6b8

Browse files
committed
the deployer cannot sign if no key is defined
1 parent fb1e659 commit fe0e6b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ if (project.properties.containsKey('signing.keyId')) {
5050
uploadArchives {
5151
repositories {
5252
mavenDeployer {
53-
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
54-
53+
if (project.properties.containsKey('signing.keyId')) {
54+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
55+
}
5556

5657
snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots') {
5758
authentication(userName: sonatypeUser, password: sonatypePass)

0 commit comments

Comments
 (0)