Skip to content

Commit

Permalink
Fix buildscript for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Feb 11, 2023
1 parent ef483a3 commit a0157c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
4 changes: 0 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ allprojects {
}
}

subprojects {
plugins.apply("net.mamoe.mirai-console")
}

nexusStaging {
packageGroup = "net.mamoe" // from Sonatype accounts, do not change
username = mavenCentralPublish.credentials?.sonatypeUsername
Expand Down
6 changes: 2 additions & 4 deletions mirai-api-http-spi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
kotlin("jvm")
kotlin("plugin.serialization")
id("kotlinx-atomicfu")
id("net.mamoe.mirai-console")
id("me.him188.maven-central-publish")
}

Expand All @@ -26,7 +27,7 @@ tasks {
}

tasks.register("buildSpi", Jar::class) {
dependsOn("build")
dependsOn("jar")
doLast {
val jarTask = tasks.getByName("jar", Jar::class)
val buildPluginFile = jarTask.archiveFile.get().asFile
Expand All @@ -43,7 +44,4 @@ mavenCentralPublish {
githubProject("project-mirai", "mirai-api-http-spi")
licenseFromGitHubProject("licenseAgplv3", "master")
developer("Mamoe Technologies")
publication {
artifact(tasks.getByName("buildSpi"))
}
}
1 change: 1 addition & 0 deletions mirai-api-http/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
kotlin("jvm")
kotlin("plugin.serialization")
id("kotlinx-atomicfu")
id("net.mamoe.mirai-console")
id("me.him188.maven-central-publish")
}

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ pluginManagement {

rootProject.name = "mirai-api-http"

include(":mirai-api-http-spi")
include(":mirai-api-http")
include("mirai-api-http-spi")

0 comments on commit a0157c4

Please sign in to comment.