Robert
03/06/2020, 12:48 PM- Kotlin + Depencendices: "1.3.61" - coroutines 1.3.+
- Spring Boot 2.2.4.RELEASE
2020-03-06 12:29:59.485 ERROR 28 --- [boundedElastic-5] reactor.core.scheduler.Schedulers : Scheduler worker in group main failed with an uncaught exception
java.lang.NoClassDefFoundError: kotlin/coroutines/AbstractCoroutineContextKey
at java.lang.ClassLoader.defineClass1(Native Method)
elizarov
03/06/2020, 12:51 PMRobert
03/06/2020, 12:51 PMelizarov
03/06/2020, 12:52 PMRobert
03/06/2020, 12:53 PMelizarov
03/06/2020, 12:54 PMRobert
03/06/2020, 12:54 PMelizarov
03/06/2020, 12:55 PMRobert
03/06/2020, 12:55 PMelizarov
03/06/2020, 12:56 PM./gradlew dependencies
. Grep it for kotlinx-coroutines
and kotlin-stdlib
versions, pleaseRobert
03/06/2020, 12:57 PMelizarov
03/06/2020, 12:59 PMRobert
03/06/2020, 1:01 PMelizarov
03/06/2020, 1:03 PMRobert
03/06/2020, 1:10 PMplugins {
id("org.springframework.boot") version "2.2.4.RELEASE"
id("io.spring.dependency-management") version "1.0.9.RELEASE"
id("org.jetbrains.kotlin.plugin.allopen") version "1.3.61"
kotlin("jvm") version "1.3.61"
kotlin("plugin.spring") version "1.3.61"
}
extra["kotlinCoroutinesVersion"] = "1.3.+"
extra["springCloudReleaseTrain"] = "Hoxton.RELEASE"
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${property("kotlinCoroutinesVersion")}")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudReleaseTrain")}")
elizarov
03/06/2020, 1:10 PMRobert
03/06/2020, 1:10 PMRobert
03/06/2020, 1:10 PMlouiscad
03/06/2020, 1:22 PM1.3.+
It's not a good idea to keep on using it, unless you want to keep on having similar issues in the future. Avoiding version ranges is best to know what your code depends on, and ensure your builds are reproducible.
Shameless plug: If you're concerned about knowing your dependencies have updates and applying them quickly, I worked on #gradle-refresh-versions which makes that easy (I'm using it on professional projects).Robert
03/06/2020, 2:03 PMlouiscad
03/06/2020, 2:18 PMRobert
03/06/2020, 2:36 PMRobert
03/06/2020, 2:36 PMsdeleuze
03/06/2020, 2:44 PMelizarov
03/10/2020, 9:18 AMlouiscad
03/10/2020, 9:22 AMelizarov
03/10/2020, 9:23 AMkotlinx-coroutines-bom
artifact.elizarov
03/10/2020, 11:08 AM<http://start.spring.io|start.spring.io>
. Can you point to some example project that exhibits this problem?sdeleuze
03/11/2020, 10:20 AMsdeleuze
03/18/2020, 5:46 PMelizarov
03/18/2020, 6:26 PM