https://kotlinlang.org logo
Title
p

PHondogo

05/07/2020, 7:59 PM
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

octylFractal

05/07/2020, 8:06 PM
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

PHondogo

05/07/2020, 8:14 PM
Thank! But i'm writing plugin. May be there is workaround?
o

octylFractal

05/07/2020, 8:15 PM
I mean, you can try it
but it's likely to break, because that's just how it is
p

PHondogo

05/07/2020, 8:18 PM
I did, but it complains about multi versions of kotlin in dependencies than.
o

octylFractal

05/07/2020, 8:18 PM
correct, that's your warning. if you want to try it, you just have to accept that warning
p

PHondogo

05/07/2020, 8:36 PM
Thanks for your help!