Basic Spring Boot app in Kotlin
You can read more about it here on my blog.
We are using a trampoline class in Java to help spring find the main method.
Because of that, the pom is set to compile Kotlin code before Java code by running the Kotlin compilation in the process-sources
phase.
$ mvn clean package
$ mvn spring-boot:run
or
$ java -jar target/SpringApp.jar