mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-01 11:42:54 +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) {
|
when (val type = publication.name) {
|
||||||
"kotlinMultiplatform" -> {
|
"kotlinMultiplatform" -> {
|
||||||
publication.artifactId = project.name
|
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"
|
"metadata" -> { // TODO: 2021/1/21 seems no use. none `type` is "metadata"
|
||||||
publication.artifactId = "${project.name}-metadata"
|
publication.artifactId = "${project.name}-metadata"
|
||||||
|
@ -25,14 +25,6 @@ description = "mirai-core utilities"
|
|||||||
|
|
||||||
val isAndroidSDKAvailable: Boolean by project
|
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 {
|
kotlin {
|
||||||
explicitApi()
|
explicitApi()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user