Both seem to work fine for my project so i'd like to understand what each is doing?
s
Syex
05/13/2020, 9:02 AM
The latter one is an extension function, which returns a
String
. You can step into it and you will see, that it concatenates “org.jetbrains.kotlin:kotlin-” with what you passed,
stdlib
. so in the end it’s exactly the same
🙏 1
c
christophsturm
05/13/2020, 1:14 PM
and the platform line is useful to make sure that transient kotlin dependencies have the correct version
t
tim
05/13/2020, 1:15 PM
Ahh yes "bill of material"
tim
05/13/2020, 1:15 PM
👍
o
octylFractal
05/13/2020, 5:13 PM
note that you may see a BOM-like effect without it, because the kotlin plugin declares special version constraints, but it is not the same as using the BOM