Skip to content

Commit

Permalink
Update PublicationHelper.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXiaoM committed Dec 14, 2023
1 parent 66a422e commit c551fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/PublicationHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fun Project.setupMavenCentralPublication(artifactsBlock: MavenPublication.() ->
val signingPassword = findProperty("signingPassword")?.toString()
if (signingKey != null && signingPassword != null) {
useInMemoryPgpKeys(signingKey, signingPassword)
sign(extensions.getByType(PublishingExtension::class).publications.getByName("mavenRelease"))
sign(extensions.getByType(PublishingExtension::class).publications.getByName("maven"))
} else {
logger.warn("子模块 ${project.name} 未找到签名配置")
}
Expand Down

0 comments on commit c551fe1

Please sign in to comment.