Has anyone seen this after upgrading to 1.9.0? ``...
# gradle
j
Has anyone seen this after upgrading to 1.9.0?
Copy code
* What went wrong:
Could not determine the dependencies of task ':kotlin-test-junit5:jvmTest'.
> Could not resolve all task dependencies for configuration ':kotlin-test-junit5:jvmTestRuntimeClasspath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-test-junit:{strictly 1.9.0}.
     Required by:
         project :kotlin-test-junit5
      > 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.9.0' also provided by [org.jetbrains.kotlin:kotlin-test-junit5:1.9.0(junit5Runtime)]
   > Could not resolve org.jetbrains.kotlin:kotlin-test-junit5:{strictly 1.9.0}.
     Required by:
         project :kotlin-test-junit5
      > 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.9.0' also provided by [org.jetbrains.kotlin:kotlin-test-junit:1.9.0(junitRuntime)]
   > Could not resolve org.jetbrains.kotlin:kotlin-test-junit:1.9.0.
     Required by:
         project :kotlin-test-junit5 > org.jetbrains.kotlin:kotlin-test:1.9.0
      > 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.9.0' also provided by [org.jetbrains.kotlin:kotlin-test-junit5:1.9.0(junit5Runtime)]
v
The error message means you depend on both,
org.jetbrains.kotlin:kotlin-test-junit
and
org.jetbrains.kotlin:kotlin-test-junit5
, while they are mutually exclusive.
j
I don’t added both, how can I remove one? I tried excluding from the junit5 but I didn’t expect it to work
v
Probably first look where they come from, for example in a build
--scan
j
After looking a bit, it was being added in a convention plugin, I found more issues, before I can add those jvm libraries to common (junit, junit5 and testng), but looks like now it is more restrictive and I had to move everything to JVM
e
Can you please close/respond to the issue you opened?
1
136 Views