I recently downloaded IntelliJ and tried to setup a new Kotlin project.
One way to create a Kotlin project is “New -> New Project -> Kotlin”. Another is via “New -> New Project -> Gradle” and then “Tools -> Kotlin -> Configure Kotlin in Project”.
The first way, it is easy to write/build/run Kotlin – but there is no build script (
pom.xml) so there is way to add dependencies. The second way, there is a
build.gradle but it does not seem to find my Kotlin files (even though I put them in
src/main/kotlin/<name of artifact>.
It would be nice to have Kotlin+Gradle and to create through a blessed path in the IntelliJ UI (might as well know the right way to do things). Anyone been through this and have some thoughts about my predicament?