https://kotlinlang.org logo
#spring
Title
m

mp

08/18/2020, 10:40 AM
hi there. Has anyone bumped kotlin to 1.4 in SB project already? 😃
🙋‍♂️ 1
👍 1
j

Jonas Bark

08/18/2020, 2:20 PM
we tried but we're relying on KtLint to be compatible first 👍
r

Robert Jaros

08/20/2020, 4:47 PM
It doesn't work for me.
Copy code
Failed to instantiate [org.springframework.security.web.server.SecurityWebFilterChain]: Factory method 'securityWebFilterChain' threw exception; nested exception is java.lang.NoSuchMethodError: kotlin.jvm.internal.FunctionReferenceImpl.<init>(ILjava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V
Adding this to
build.gradle.kts
helps:
Copy code
extra["kotlin.version"] = "1.4.0"
s

sdeleuze

09/04/2020, 6:16 AM
Boot 2.4.0-M3 will use Kotlin 1.4 by default
h

huehnerlady

09/04/2020, 6:23 AM
We use kotlin 1.4.0 now and we just had to include the kotlin plugin at 1.4.0, so far everything works for us 🙂
s

sdeleuze

09/04/2020, 6:25 AM
Great to know thanks for sharing. I think you should also set
kotlin.version
to 1.4.0 as shown above in addition to the plugin to make Boot dependency management aware.
h

huehnerlady

09/04/2020, 6:28 AM
I will have a look into that, thanks 🙂
2 Views