mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-01 10:12:51 +08:00
skip publication setup for mirai-console-gradle
This commit is contained in:
parent
f48940a897
commit
3c3657969f
@ -75,9 +75,12 @@ inline fun Project.configurePublishing(
|
||||
vcs: String = "https://github.com/mamoe/mirai",
|
||||
addProjectComponents: Boolean = true,
|
||||
setupGpg: Boolean = true,
|
||||
skipPublicationSetup: Boolean = false,
|
||||
) {
|
||||
configureRemoteRepos()
|
||||
|
||||
if (skipPublicationSetup) return
|
||||
|
||||
val shadowJar = if (!addProjectComponents) null else tasks.register<ShadowJar>("shadowJar") {
|
||||
archiveClassifier.set("all")
|
||||
manifest.inheritFrom(tasks.getByName<Jar>("jar").manifest)
|
||||
|
@ -119,5 +119,5 @@ tasks {
|
||||
}
|
||||
|
||||
if (System.getenv("MIRAI_IS_SNAPSHOTS_PUBLISHING")?.toBoolean() == true) {
|
||||
configurePublishing("mirai-console-gradle")
|
||||
configurePublishing("mirai-console-gradle", skipPublicationSetup = true)
|
||||
}
|
Loading…
Reference in New Issue
Block a user