question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

org.jetbrains.kotlin:kotlin-test:1.7.10 dependency error

See original GitHub issue
> Could not resolve all files for configuration ':testRuntimeClasspath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-test-junit5:1.7.10.
     Required by:
         project : > org.jetbrains.kotlin:kotlin-test:1.7.10
      > 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.7.10' also provided by [org.jetbrains.kotlin:kotlin-test-junit:1.6.21(junitRuntime)]
   > Could not resolve org.jetbrains.kotlin:kotlin-test-junit:1.6.21.
     Required by:
         project : > com.badoo.reaktive:reaktive-testing:1.2.2 > com.badoo.reaktive:reaktive-testing-jvm:1.2.2
      > 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.6.21' also provided by [org.jetbrains.kotlin:kotlin-test-junit5:1.7.10(junit5Runtime)]

Maybe this PR https://github.com/badoo/Reaktive/pull/666 will fix ☝️ ?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
arkivanovcommented, Jul 27, 2022

Thanks! If I understand it correctly, the issue is a bit different. It looks like kotlin-test-junit conflicts with kotlin-test-junit5. The former is used by reaktive-testing, the latter perhaps used in your project.

You can try using kotlin-test-junit instead if that’s an option. Otherwise it should be possible to exclude it as follows:

implementation("com.badoo.reaktive:reaktive-testing:1.2.2") {
    exclude("org.jetbrains.kotlin", "kotlin-test-junit")
}

I have found similar issue: https://youtrack.jetbrains.com/issue/KT-46090

@CherryPerry what do you think about this issue?

0reactions
arkivanovcommented, Jul 27, 2022

Thanks @CherryPerry ! I will try to get rid of kotlin-test-junit. This fix would be a good fit for v1.3.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

maven import dependency error
Problem maven plugin throws an exception while importing project's dependency. ... at org.jetbrains.idea.maven.server.embedder.
Read more >
IntelliJ IDEA - Troubleshooting common Maven issues
This error usually indicates a problem with the compiler version compatibility, and you can check few places to fix it. For example, you...
Read more >
Can't download dependency's source code - why? Follow
Here is the dependency from my module's POM:: ... When I try to download sources, I get the following error message: Sources not...
Read more >
Execution failed for task ':buildSearchableOptions': Error when ...
I've configured the IDEA-Project to use the JetBrainsRuntime for 213 ... Error when resolving dependency: ...
Read more >
Maven importer does not find dependency version declared in ...
The project does not import properly, can't find dependencies, and can't build ... INFO - #org.jetbrains.idea.maven - [INFO] Validation error: 2021-04-05 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found