mirror of
https://github.com/mamoe/mirai.git
synced 2024-12-29 10:00:13 +08:00
Do not publish jvm artifacts in root module, fix unresolved dependency with Android. fix #897
This commit is contained in:
parent
1a431bc94d
commit
525d7c8de3
@ -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"
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user