1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-09 02:10:10 +08:00

Do not publish jvm artifacts in root module, fix unresolved dependency with Android. fix

This commit is contained in:
Him188 2021-01-27 13:57:32 +08:00
parent 1a431bc94d
commit 525d7c8de3
2 changed files with 1 additions and 9 deletions
buildSrc/src/main/kotlin
mirai-core-utils

View File

@ -68,7 +68,7 @@ fun Project.configureMppPublishing() {
when (val type = publication.name) {
"kotlinMultiplatform" -> {
publication.artifactId = project.name
publishPlatformArtifactsInRootModule(publications.getByName("jvm") as MavenPublication)
// publishPlatformArtifactsInRootModule(publications.getByName("jvm") as MavenPublication)
}
"metadata" -> { // TODO: 2021/1/21 seems no use. none `type` is "metadata"
publication.artifactId = "${project.name}-metadata"

View File

@ -25,14 +25,6 @@ description = "mirai-core utilities"
val isAndroidSDKAvailable: Boolean by project
afterEvaluate {
tasks.getByName("compileKotlinCommon").enabled = false
tasks.getByName("compileTestKotlinCommon").enabled = false
tasks.getByName("compileCommonMainKotlinMetadata").enabled = false
tasks.getByName("compileKotlinMetadata").enabled = false
}
kotlin {
explicitApi()