Hey, probably a dumb question, but I've never worked with kotlin before; I just created a new kotlin project in intellij, and now I want to add an external project to it (https://github.com/xenomachina/kotlin-argparser for instance). How do I go about this? Do I have to add a gradle file or somesuch?
n
nfrankel
05/11/2018, 4:13 PM
what did you program in previously?
are you familiar with the notion of a build tool?
a
Amadiro
05/11/2018, 4:14 PM
Yeah, I've used gradle, cmake, make et al before
Amadiro
05/11/2018, 4:14 PM
I was unsure whether intellij already made a choice for me in that regard when creating a project...
Amadiro
05/11/2018, 4:17 PM
(or indeed what the idiomatic approach is, in the kotlin world)
a
Andreas Sinz
05/11/2018, 4:29 PM
it depends on what you want to do with it. If it's a pet-project to play around, you can use intellij only, if you need CI (without Teamcity)/other advanced stuff you are better off with gradle or another build tool
a
Amadiro
05/11/2018, 4:29 PM
Cool, I think I'll just go with gradle. Thanks!
a
Andreas Sinz
05/11/2018, 4:30 PM
then create a
build.gradle
inside the project folder and the next time you open the project inside intellij it will inform you that you can enabled gradle for this project and it will sync the settings between gradle and intellij