build(publish): 增加构件签名过程.

增加构件 GPG 签名, 可保证构件未被修改, 增加构件可信度.
This commit is contained in:
2022-05-17 19:26:26 +08:00
parent a44732a7f6
commit 6e59a9a5ac

View File

@ -4,6 +4,7 @@ plugins {
kotlin("jvm") version "1.6.10"
java
`maven-publish`
signing
}
dependencies {
@ -94,3 +95,8 @@ publishing {
}
}
signing {
useGpgCmd()
sign(publishing.publications["maven"])
}