hi there. Has anyone bumped kotlin to 1.4 in SB p...
# spring
m
hi there. Has anyone bumped kotlin to 1.4 in SB project already? ๐Ÿ˜ƒ
๐Ÿ™‹โ€โ™‚๏ธ 1
๐Ÿ‘ 1
j
we tried but we're relying on KtLint to be compatible first ๐Ÿ‘
r
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
Boot 2.4.0-M3 will use Kotlin 1.4 by default
h
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
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
I will have a look into that, thanks ๐Ÿ™‚