mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 17:00:14 +08:00
Fix HMPP platform structure
This commit is contained in:
parent
19e54d16f2
commit
82f24b736c
@ -21,10 +21,6 @@ plugins {
|
||||
version = Versions.project
|
||||
description = "Mirai core shadowed"
|
||||
|
||||
kotlin {
|
||||
target.attributes.attribute(Attribute.of("mirai.target.platform", String::class.java), "jvm")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(project(":mirai-core"))
|
||||
api(project(":mirai-core-api"))
|
||||
|
@ -6,9 +6,10 @@
|
||||
*
|
||||
* https://github.com/mamoe/mirai/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
@file:Suppress("UNUSED_VARIABLE")
|
||||
|
||||
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
id("kotlinx-atomicfu")
|
||||
@ -55,12 +56,10 @@ kotlin {
|
||||
}
|
||||
|
||||
jvm("common") {
|
||||
attributes.attribute(ATTRIBUTE_MIRAI_TARGET_PLATFORM, "common")
|
||||
attributes.attribute(KotlinPlatformType.attribute, KotlinPlatformType.common)
|
||||
}
|
||||
|
||||
jvm("jvm") {
|
||||
attributes.attribute(ATTRIBUTE_MIRAI_TARGET_PLATFORM, "jvm")
|
||||
}
|
||||
jvm("jvm")
|
||||
|
||||
// jvm("android") {
|
||||
// attributes.attribute(Attribute.of("mirai.target.platform", String::class.java), "android")
|
||||
|
@ -9,6 +9,8 @@
|
||||
|
||||
@file:Suppress("UNUSED_VARIABLE")
|
||||
|
||||
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
id("kotlinx-atomicfu")
|
||||
@ -54,12 +56,10 @@ kotlin {
|
||||
}
|
||||
|
||||
jvm("common") {
|
||||
attributes.attribute(ATTRIBUTE_MIRAI_TARGET_PLATFORM, "common")
|
||||
attributes.attribute(KotlinPlatformType.attribute, KotlinPlatformType.common)
|
||||
}
|
||||
|
||||
jvm("jvm") {
|
||||
attributes.attribute(ATTRIBUTE_MIRAI_TARGET_PLATFORM, "jvm")
|
||||
}
|
||||
jvm("jvm")
|
||||
|
||||
// jvm("android") {
|
||||
// attributes.attribute(Attribute.of("mirai.target.platform", String::class.java), "android")
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
@file:Suppress("UNUSED_VARIABLE")
|
||||
|
||||
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
|
||||
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
|
||||
|
||||
plugins {
|
||||
@ -55,12 +56,10 @@ kotlin {
|
||||
}
|
||||
|
||||
jvm("common") {
|
||||
attributes.attribute(ATTRIBUTE_MIRAI_TARGET_PLATFORM, "common")
|
||||
attributes.attribute(KotlinPlatformType.attribute, KotlinPlatformType.common)
|
||||
}
|
||||
|
||||
jvm("jvm") {
|
||||
attributes.attribute(ATTRIBUTE_MIRAI_TARGET_PLATFORM, "jvm")
|
||||
}
|
||||
jvm("jvm")
|
||||
|
||||
/*
|
||||
jvm("android") {
|
||||
|
@ -24,5 +24,4 @@ rootProject.name = "mirai"
|
||||
include(":mirai-core-utils")
|
||||
include(":mirai-core-api")
|
||||
include(":mirai-core")
|
||||
include(":mirai-core-all")
|
||||
// include(":mirai-core-all")
|
||||
include(":mirai-core-all")
|
Loading…
Reference in New Issue
Block a user