Fix build.gradle

This commit is contained in:
Him188 2020-02-07 10:11:47 +08:00
parent 5f4c3882cf
commit 10c377e891
2 changed files with 5 additions and 4 deletions

View File

@ -103,7 +103,7 @@ kotlin {
val jvmMain by getting {
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))
}
}
@ -114,8 +114,8 @@ kotlin {
api(kotlin("test-junit", kotlinVersion))
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/atomicfu/jvm/test")) // 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/kotlin/jvm/test")) // classpath is not properly set by IDE
}
}
}

View File

@ -4,9 +4,10 @@ apply plugin: "application"
apply plugin: "kotlinx-serialization"
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")
api("org.jetbrains.kotlinx:atomicfu:$atomicFuVersion")
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion
implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: coroutinesVersion