Fix compilation dependency

This commit is contained in:
Him188 2020-02-07 08:44:47 +08:00
parent dc36d07217
commit 6d0972dd54
2 changed files with 4 additions and 4 deletions

View File

@ -103,7 +103,7 @@ kotlin {
val jvmMain by getting {
dependencies {
runtimeOnly(files("build/classes/kotlin/jvm/main")) // classpath is not properly set by IDE
runtimeOnly(files("build/classes/atomicfu/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/kotlin/jvm/main")) // classpath is not properly set by IDE
runtimeOnly(files("build/classes/kotlin/jvm/test")) // classpath is not properly set by IDE
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
}
}
}

View File

@ -4,7 +4,7 @@ apply plugin: "application"
apply plugin: "kotlinx-serialization"
dependencies {
implementation files("../../mirai-core-qqandroid/build/classes/kotlin/jvm/main") // IDE bug
runtimeOnly files("../../mirai-core-qqandroid/build/classes/atomicfu/jvm/main") // IDE bug
implementation project(":mirai-core-qqandroid")
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion