Dariusz Kuc
05/25/2021, 9:32 PMClassNotFoundException
during the build
Caused by: java.lang.ClassNotFoundException: kotlinx.coroutines.CoroutinesInternalError
Which generally implies some classpath issue. I'm using Gradle 6.8 with Kotlin 1.4.32 and coroutines 1.4.3. Wondering if anyone else encountered similar issue?
While looking at the dependency tree (https://scans.gradle.com/s/uvf7bsxzvgwso/dependencies?dependencies=kotlinx-coroutines-core&expandAll) the only config on kotlinx-coroutines-core
is from the kotlinCompilerPluginClasspath
. When I run gradle -q dependencies --configuration kotlinCompilerPluginClasspath
you can see that it comes from kotlin-scripting-compiler-embeddable
kotlinCompilerPluginClasspath
\--- org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.4.32
+--- org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.4.32
| +--- org.jetbrains.kotlin:kotlin-scripting-common:1.4.32
| | +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32
| | | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.32
| | | \--- org.jetbrains:annotations:13.0
| | \--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8
| | +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.71 -> 1.4.32 (*)
| | \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.3.71 -> 1.4.32
| +--- org.jetbrains.kotlin:kotlin-scripting-jvm:1.4.32
| | +--- org.jetbrains.kotlin:kotlin-script-runtime:1.4.32
| | +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 (*)
| | \--- org.jetbrains.kotlin:kotlin-scripting-common:1.4.32 (*)
| +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 (*)
| \--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8 (*)
\--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 (*)
(*) - dependencies omitted (listed previously)
and sure enough the published artifact references old version of coroutines -> https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-scripting-compiler-impl-e[…]e/1.4.32/kotlin-scripting-compiler-impl-embeddable-1.4.32.pom (release 1.5.10 still points to 1.3.8 coroutines as well). Any ideas why runtime dep would be blowing stuff up?no
05/25/2021, 9:48 PMDariusz Kuc
05/25/2021, 9:51 PMDariusz Kuc
05/25/2021, 9:52 PMno
05/25/2021, 9:56 PMDariusz Kuc
05/25/2021, 9:57 PMDariusz Kuc
05/25/2021, 9:58 PMno
05/25/2021, 9:59 PMDariusz Kuc
05/25/2021, 10:00 PMDariusz Kuc
05/25/2021, 10:00 PMno
05/25/2021, 10:10 PMno
05/25/2021, 10:12 PMDariusz Kuc
05/25/2021, 10:13 PMDariusz Kuc
05/25/2021, 10:26 PMDariusz Kuc
05/25/2021, 10:29 PMktor-client-jackson
pulls in old version of jackson-module-kotlin
(2.10.3) which in turn attempts to pull in old version of kotlin-reflect
(1.3.61) which according to dependency tree is updated to correct one.....Dariusz Kuc
05/26/2021, 12:25 AMDariusz Kuc
05/26/2021, 12:26 AMktor-client-cio-jvm
depends on kotlinx-coroutines-core:1.4.2-native-mt
and it gets updated to 1.4.3
wonder whether that is causing issues
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2-native-mt -> 1.4.3
no
05/26/2021, 1:57 AMDariusz Kuc
05/26/2021, 3:37 AMno
05/26/2021, 3:35 PM