Execution failed for task ':compileTestKotlin'.
> Could not resolve all files for configuration ':testCompileClasspath'.
> Could not resolve org.jetbrains.kotlin:kotlin-test-junit5:1.8.10.
Required by:
project :
> Module 'org.jetbrains.kotlin:kotlin-test-junit5' has been rejected:
Cannot select module with conflict on capability 'org.jetbrains.kotlin:kotlin-test-framework-impl:1.8.10' also provided by [org.jetbrains.kotlin:kotlin-test-junit:1.7.21(junitApi)]
> Could not resolve org.jetbrains.kotlin:kotlin-test-junit:1.7.21.
Required by:
project : > io.insert-koin:koin-test:3.3.3 > io.insert-koin:koin-test-jvm:3.3.3
> Module 'org.jetbrains.kotlin:kotlin-test-junit' has been rejected:
Cannot select module with conflict on capability 'org.jetbrains.kotlin:kotlin-test-framework-impl:1.7.21' also provided by [org.jetbrains.kotlin:kotlin-test-junit5:1.8.10(junit5Api)]
👀 1
ribesg
02/17/2023, 2:41 PM
Why is
koin-test-junit5
pulling
kotlin-test-junit
ribesg
02/17/2023, 2:43 PM
Had tests failing because they used some Junit4 annotations instead of Junit5. Decided to cleanup dependencies and update project.
ribesg
02/17/2023, 2:44 PM
I had no dependency on Junit4… But it looks like
koin-test-junit5
somehow has one.
ribesg
02/17/2023, 2:44 PM
I did this to prevent Junit4 use and fix build, but I don't like it.