Commit 10c377e8 authored by Him188's avatar Him188

Fix build.gradle

parent 5f4c3882
...@@ -103,7 +103,7 @@ kotlin { ...@@ -103,7 +103,7 @@ kotlin {
val jvmMain by getting { val jvmMain by getting {
dependencies { dependencies {
runtimeOnly(files("build/classes/atomicfu/jvm/main")) // classpath is not properly set by IDE runtimeOnly(files("build/classes/kotlin/jvm/main")) // classpath is not properly set by IDE
api(kotlinx("serialization-runtime", serializationVersion)) api(kotlinx("serialization-runtime", serializationVersion))
} }
} }
...@@ -114,8 +114,8 @@ kotlin { ...@@ -114,8 +114,8 @@ kotlin {
api(kotlin("test-junit", kotlinVersion)) api(kotlin("test-junit", kotlinVersion))
implementation("org.pcap4j:pcap4j-distribution:1.8.2") implementation("org.pcap4j:pcap4j-distribution:1.8.2")
runtimeOnly(files("build/classes/atomicfu/jvm/main")) // classpath is not properly set by IDE runtimeOnly(files("build/classes/kotlin/jvm/main")) // classpath is not properly set by IDE
runtimeOnly(files("build/classes/atomicfu/jvm/test")) // classpath is not properly set by IDE runtimeOnly(files("build/classes/kotlin/jvm/test")) // classpath is not properly set by IDE
} }
} }
} }
......
...@@ -4,9 +4,10 @@ apply plugin: "application" ...@@ -4,9 +4,10 @@ apply plugin: "application"
apply plugin: "kotlinx-serialization" apply plugin: "kotlinx-serialization"
dependencies { dependencies {
runtimeOnly files("../../mirai-core-qqandroid/build/classes/atomicfu/jvm/main") // IDE bug runtimeOnly files("../../mirai-core-qqandroid/build/classes/kotlin/jvm/main") // IDE bug
implementation project(":mirai-core-qqandroid") implementation project(":mirai-core-qqandroid")
api("org.jetbrains.kotlinx:atomicfu:$atomicFuVersion")
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion
implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: coroutinesVersion implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: coroutinesVersion
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment