Hi, there! I'm new to kotlin and wonder what it me...
# getting-started
w
Hi, there! I'm new to kotlin and wonder what it means. Thx!
j
Is this some documentation about Maven?
j
Ok thanks. If you're new you probably want to use the default tools (Gradle) rather then Maven, otherwise you will face friction and find less material to help you
w
Well. There are some projects using Maven as build tool and I'm new to Kotlin. I just feel a bit confused about what it described
thx all the same. I would google it for more infos.
j
I don't know much about Maven, but from what I understand this paragraph is not related to Kotlin, it's more a heads-up about how maven works. Basically, you don't have to manually bind the Kotlin plugin to lifecycle phases because it can do so automatically with
<extensions>true</extensions>
. This note tells you that if you do that with multiple plugins (not just Kotlin), the last one will have priority in case of conflicting configurations (whatever that may mean). You might have more luck by looking into Maven's extension mechanism if you want more details about this.
s
I wrote an article last year about adding Kotlin as a second language to a Maven project: https://void2unit.onrender.com/post/multimodule-maven-java-kotlin-config/ The last section is about how a pure Kotlin config would look like. Also take a look at the official documentation: https://kotlinlang.org/docs/maven.html