I was successfully using `org.jetbrains.kotlin:kot...
# multiplatform
k
I was successfully using
org.jetbrains.kotlin:kotlin-test-junit
as a dependency in
commonTest
all the way up to
1.9.24
. Trying
2.0.0
today the only issue I'm encountering is suddenly this:
Copy code
iosArm64Test: Could not resolve org.jetbrains.kotlin:kotlin-test-junit:2.0.0.
When I check Maven Central I see 2.0.0 listed - are the ios artifacts published somewhere else? Where would I begin looking?
a
JUnit is only available for the JVM target, but the error message you shared starts with
iosArm64Test
k
So why did it work in prior kotlin versions?
Not that I was running it as anything but jvm test target, just confused why the version change changed this
a
Hmm that does sound really strange! I can't think of a reason.. . Can you share your build.gradle?
k
I'll put together a repo project
c
i think that kotlin 2.0 maybe resolves library more strict. if you run only the jvm test target your common test code will only be compiled for the jvm so it worked before, but the dependency that you should use in common is kotlin-test and not kotlin-test-junit.
k
Yup, that was it - the strictness changed things. Once I refactored the dependencies and code a bit its all working again
a
some more info https://youtrack.jetbrains.com/issue/KT-68337 (a bug was fixed)
201 Views