Skip to content

Commit baf7659

Browse files
author
volker
committed
set signing.required independent from useInMemoryPgpKeys
1 parent 1d05ec4 commit baf7659

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@ publishing {
9393
}
9494

9595
signing {
96-
if( project.hasProperty('signing.keyId') ) {
97-
required { true }
98-
} else if( project.hasProperty('signing.key') ) {
96+
required { project.hasProperty('signing.keyId') || project.hasProperty('signing.key') }
97+
if( project.hasProperty('signing.key') ) {
9998
useInMemoryPgpKeys( project.findProperty('signing.key'), project.findProperty('signing.password') )
10099
}
101100
sign publishing.publications.maven

0 commit comments

Comments
 (0)