mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-19 11:30:09 +08:00
[build] Enable atomicfu compiler plugin for mirai-core and mirai-core-api, but disable transformations for JVM, #2315
This commit is contained in:
parent
38a98bbd98
commit
f469e889d2
@ -14,7 +14,7 @@ plugins {
|
||||
kotlin("multiplatform")
|
||||
kotlin("plugin.serialization")
|
||||
|
||||
//id("kotlinx-atomicfu")
|
||||
id("kotlinx-atomicfu")
|
||||
id("signing")
|
||||
id("me.him188.kotlin-jvm-blocking-bridge")
|
||||
id("me.him188.kotlin-dynamic-delegation")
|
||||
@ -88,6 +88,10 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
atomicfu {
|
||||
transformJvm = false
|
||||
}
|
||||
|
||||
if (tasks.findByName("androidMainClasses") != null) {
|
||||
tasks.register("checkAndroidApiLevel") {
|
||||
doFirst {
|
||||
|
@ -15,7 +15,7 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
// id("kotlinx-atomicfu")
|
||||
id("kotlinx-atomicfu")
|
||||
kotlin("plugin.serialization")
|
||||
id("me.him188.kotlin-jvm-blocking-bridge")
|
||||
id("me.him188.kotlin-dynamic-delegation")
|
||||
@ -188,6 +188,10 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
atomicfu {
|
||||
transformJvm = false
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
val main = projectDir.resolve("src/nativeTest/kotlin/local/TestMain.kt")
|
||||
if (!main.exists()) {
|
||||
|
Loading…
Reference in New Issue
Block a user