Kotlin DSL Jar Compile Error: Exception in thread "main" java.lang.NoClassDefFoundError

My question has been resolved. I have added the application plugin to my project and ran ./gradlew installDist and everything worked fine. I also had the possibility to run my app using ./gradlew run or even use the shadow plugin which would generate a JAR with all the dependencies in it.

Thanks to Kotlin community on Slack.
Link to conversation on Slack