I want to create a kotlin only library module in m...
# gradle
c
I want to create a kotlin only library module in my android app. I went through and created it using the wizard and got this
Copy code
plugins {
    id("java-library")
    id("org.jetbrains.kotlin.jvm")
}
but then I went and looked at an old project and it had a kotlin only lib module that looked like this:
Copy code
plugins {
    id("java-library")
    id("kotlin")
}
So is there any diff between the second lines in both of these?
v
I'd say it should actually be
kotlin("jvm")
?
👌 1
j
Yep,
java-library
is not necessary
v
That too, yeah
c
ooh. interesting. maybe I'll file a bug with the android studio team. Is there any "reasoning" behind it for when I file the bug besides saying "Hey you can update this template to say this instead?"
f
No, all of them are equivalent but having only
kotlin("jvm")
is more concise.
👍 1