Skip to content

Commit 3d36275

Browse files
Publish: set signing config after publication is known.
1 parent d747fdc commit 3d36275

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

build.gradle

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,6 @@ configure(subprojects.findAll { projectNamesToPublish.contains(it.name) }) {
8686
apply plugin: 'maven-publish'
8787
apply plugin: 'signing'
8888

89-
signing {
90-
if (hasSigningProperties()) {
91-
String signingKey = new File(signingKeyFile).text
92-
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
93-
sign publishing.publications.mavenJava
94-
} else {
95-
println "Signing information missing/incomplete for ${project.name}"
96-
}
97-
}
98-
9989
publishing {
10090
repositories {
10191
maven {
@@ -155,6 +145,16 @@ configure(subprojects.findAll { projectNamesToPublish.contains(it.name) }) {
155145
}
156146
}
157147
}
148+
149+
signing {
150+
if (hasSigningProperties()) {
151+
String signingKey = new File(signingKeyFile).text
152+
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
153+
sign publishing.publications.mavenJava
154+
} else {
155+
println "Signing information missing/incomplete for ${project.name}"
156+
}
157+
}
158158
}
159159

160160
wrapper {

0 commit comments

Comments
 (0)