Rohan Maity
01/16/2022, 12:52 PMimplementation(enforcedPlatform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:${kotlinWrappersVersion}"))
I am not able to see enforcedPlatform
in build.gradle.kts
Do I have to use any other plugin as well ?
cc @turansky This is from the kotlin-wrappers libraryturansky
01/16/2022, 4:24 PMturansky
01/16/2022, 4:25 PMVampire
01/16/2022, 4:47 PMenforcedPlatform
and in most cases use platform
. In a library it is a particularly bad idea, in an end product it should only be used on edge cases. But besides that, both functions are part of the kotlin dsl classes, so it should just work.Rohan Maity
01/16/2022, 5:06 PMVampire
01/16/2022, 5:12 PMRohan Maity
01/16/2022, 5:29 PMRohan Maity
01/16/2022, 5:29 PMRohan Maity
01/16/2022, 5:38 PMkotlin-wrappers
even I have imported the mui.material.TextField
still IDE is not able to resolve this codeturansky
01/16/2022, 6:15 PMRohan Maity
01/17/2022, 5:04 AMRohan Maity
01/17/2022, 6:32 AMandylamax
01/17/2022, 12:08 PMplatform
in a library? Is it advised?Vampire
01/17/2022, 12:21 PMplatform
should be fine.
With enforced it would be bad because something along the lines that it would also enforce those versions on downstream projects and that could easily lead to unsolvable problems or something like that.
If you try to publish with enforced platform you even just get a failure that you have to disable explicitly if you really want that as it is seldomly the right thing to do.