Skip to content

Commit 2f721cb

Browse files
committed
build > fix signing
1 parent 6306658 commit 2f721cb

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

build.gradle.kts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,19 @@ allprojects {
266266
}
267267

268268
allprojects {
269-
plugins.withId("java-library") {
269+
plugins.withId("maven-publish") {
270+
270271
plugins.apply("signing")
272+
271273
signing {
272-
val signingKey = "${project.findProperty("signingKey")}"
273-
val signingPassword = "${project.findProperty("signingPassword")}"
274+
val signingKey = "${findProperty("signingKey")}"
275+
val signingPassword = "${findProperty("signingPassword")}"
274276
useInMemoryPgpKeys(signingKey, signingPassword)
275-
sign(publishing.publications["base"])
277+
afterEvaluate {
278+
for (publication in publishing.publications) {
279+
sign(publication)
280+
}
281+
}
276282
}
277283
}
278284
}
@@ -316,7 +322,7 @@ allprojects {
316322
}
317323
}
318324

319-
apply("${rootDir}/gradle/japicc.gradle.kts")
325+
apply("$rootDir/gradle/japicc.gradle.kts")
320326

321327

322328
/* ******************** build cache ******************** */

0 commit comments

Comments
 (0)