Hello! I want to try kotlin-1.4-M1 but with kotlin...
# gradle
p
Hello! I want to try kotlin-1.4-M1 but with kotlin-dsl plugin gradle complains of different versions of kotlin libs on classpath. Please advice me how to solve this issue.
o
you shouldn't use kotlin-1.4-M1 with kotlin DSL
there's a lot of changes and it might fundamentally break the generated code
if you're not writing a plugin, then you shouldn't be apply the
kotlin-dsl
plugin at all, and if you're still getting that message, you need to enforce the kotlin version among your dependencies via
implementation(platform(kotlin("bom")))
p
Thank! But i'm writing plugin. May be there is workaround?
o
I mean, you can try it
but it's likely to break, because that's just how it is
p
I did, but it complains about multi versions of kotlin in dependencies than.
o
correct, that's your warning. if you want to try it, you just have to accept that warning
p
Thanks for your help!