https://kotlinlang.org logo
#getting-started
Title
# getting-started
j

James Whitehead

09/02/2021, 1:00 AM
Hi all, I have a question RE Gradle + Kotlin, x-posting here as I got no response in the gradle channel :(
🚫 2
@ephemient @Jacob Could you please elaborate rather than just leaving a "No" emoji?
🧌 2
🚫 1
h

hho

09/02/2021, 9:58 AM
I'm only a Maven luser, but I think that Gradle plugins are for the build and dependencies are for your app…?
🤔 1
e

ephemient

09/02/2021, 9:59 AM
no, it's not redundant
the plugin automatically adds a fitting stdlib dependency but that doesn't help align other dependencies like a bom does
👍 1
j

James Whitehead

09/02/2021, 10:04 AM
Interesting, because I did some experiment by removing the kotlin-bom dependency and only having the kotlin plugin, and any kotlin dependency I installed matched the version of the kotlin plugin always. That's why I wondered if it was redundant or not.
j

Javier

09/02/2021, 12:11 PM
@ephemient reflect library doesn’t need the version too if you use the gradle plugin version, not sure what libs are included in the bom tho
👍 1
I think all those libraries can work without indicating the version and letting get it from the plugin one
so I think it is safe to remove the bom and just doesn’t set the version in the implementation
e

ephemient

09/02/2021, 1:52 PM
no, because they may be indirect dependencies
👍 2
2 Views