Anything I should know about before upgrading my s...
# spring
j
Anything I should know about before upgrading my spring boot projects to kotlin 1.5.x?
k
if you come across some problems, could you share?
r
I'm trying to upgrade webflux project (Spring Boot 2.4.5) to Kotlin 1.5.0 and coroutines 1.5.0-RC and there are problems:
Copy code
2021-05-07 13:49:56,077 [boundedElastic-1] ERROR reactor.core.scheduler.Schedulers - Scheduler worker in group main failed with an uncaught exception
java.lang.NoSuchMethodError: 'void kotlinx.coroutines.AbstractCoroutine.<init>(kotlin.coroutines.CoroutineContext, boolean, boolean)'
	at kotlinx.coroutines.reactor.MonoCoroutine.<init>(Mono.kt:96)
	at kotlinx.coroutines.reactor.MonoKt.monoInternal$lambda-2(Mono.kt:88)
	at reactor.core.publisher.MonoCreate.subscribe(MonoCreate.java:57)
Adding this to
build.gradle.kts
seems to fix the problem:
Copy code
extra["kotlin.version"] = "1.5.0"
extra["kotlin-coroutines.version"] = "1.5.0-RC"