mirror of
https://github.com/mamoe/mirai.git
synced 2025-04-25 04:50:26 +08:00
Fix publishing; fix #1733
This commit is contained in:
parent
5816d4951e
commit
bca536b107
@ -73,7 +73,8 @@ fun Project.configureRemoteRepos() {
|
||||
inline fun Project.configurePublishing(
|
||||
artifactId: String,
|
||||
vcs: String = "https://github.com/mamoe/mirai",
|
||||
addProjectComponents: Boolean = true
|
||||
addProjectComponents: Boolean = true,
|
||||
setupGpg: Boolean = true,
|
||||
) {
|
||||
configureRemoteRepos()
|
||||
apply<ShadowPlugin>()
|
||||
@ -105,6 +106,8 @@ inline fun Project.configurePublishing(
|
||||
stubJavadoc?.get()?.let { artifact(it) }
|
||||
}
|
||||
}
|
||||
configGpgSign(this@configurePublishing)
|
||||
if (setupGpg) {
|
||||
configGpgSign(this@configurePublishing)
|
||||
}
|
||||
}
|
||||
}
|
@ -33,7 +33,16 @@ dependencies {
|
||||
}
|
||||
}
|
||||
|
||||
configurePublishing("mirai-bom", addProjectComponents = false)
|
||||
configurePublishing(
|
||||
"mirai-bom",
|
||||
addProjectComponents = false,
|
||||
setupGpg = false,
|
||||
)
|
||||
|
||||
publishing.publications.getByName<MavenPublication>("mavenJava") {
|
||||
from(components["javaPlatform"])
|
||||
}
|
||||
|
||||
publishing {
|
||||
configGpgSign(project)
|
||||
}
|
Loading…
Reference in New Issue
Block a user