[build] configGpgSign after adding -all artifacts for mirai-core-all

This commit is contained in:
Him188 2022-11-26 11:01:03 +00:00
parent e34f7d0d00
commit f3a74c89a7

View File

@ -34,13 +34,16 @@ val shadow = configureRelocatedShadowJarForJvmProject(kotlin)
if (System.getenv("MIRAI_IS_SNAPSHOTS_PUBLISHING")?.toBoolean() != true) {
// Do not publish -all jars to snapshot server since they are too large.
configurePublishing("mirai-core-all", addShadowJar = false)
configurePublishing("mirai-core-all", addShadowJar = false, setupGpg = false)
publications {
getByName("mavenJava", MavenPublication::class) {
artifact(shadow)
}
}
publishing {
configGpgSign(project)
}
tasks.getByName("publishMavenJavaPublicationToMavenLocal").dependsOn(shadow)
tasks.findByName("publishMavenJavaPublicationToMavenCentralRepository")?.dependsOn(shadow)