https://kotlinlang.org logo
#coroutines
Title
# coroutines
d

Daniele B

03/22/2021, 5:12 PM
I am importing:
Copy code
val commonTest by getting {
    dependencies {
        implementation(kotlin("test-common"))
        implementation(kotlin("test-annotations-common"))
        implementation ("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.3")
    }
}
and I am getting this:
org.gradle.internal.resolve.ArtifactNotFoundException: Could not find kotlinx-coroutines-test-1.4.3-samplessources.jar (org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.3).
m

mkrussel

03/22/2021, 5:22 PM
I believe the coroutines-test library is only available for JVM, so you cannot include in in
commonTest
.
d

Daniele B

03/22/2021, 5:40 PM
you are right, thanks!
m

mkrussel

03/22/2021, 5:47 PM
I would love to see this ported to common, so I could test more code using common test source set.
d

Daniele B

03/22/2021, 5:57 PM
yes, I wish too!
💯 1
e

Evan

03/24/2021, 10:17 PM
I, too, would really like to see this!
r

rocketraman

04/17/2021, 12:20 AM
That "samplessources" artifact classifier is weird. I think its a bug with the way the MPP project model is built. I created FYI, I created https://youtrack.jetbrains.com/issue/KT-46153 to track it.
2 Views