Simple Walk Through


#1

So I am a complete beginner to Kotlin and in my first attempt at hello world I get it running no problem inside of Intellij. But after a hello world in the IDE beginners are sort of droped off a cliff. What I think many beginners would greatly benefit from a guided full cycle example with a likely tool-set for the common scenario.

My goal is to simply to create a new project, write a hello world, build an uberjar and run it in a terminal.

Is there a walk through from creation of a project, to the building of a runnable jar? It probably needs to be one using a build tool (gradle is what I should be using I think?) that would allow inclusion of dependancies from maven central.

Thanks!


#2

To answer my own question for future readers, I found this excellent walk through that shows how to use gradle to build a runnable jar.

https://lisplover.gitlab.io/blog/2016/04/23/Kotlin-with-Gradle/