Set up a project that uses Kotlin and Maven to target the JVM.
It's based on Maven in 5 Minutes and Using Maven with Kotlin.
First, click and create a repository from that screen.
Then update pom.xml
to change the name, group ID, artifact ID, et cetera, and update the src/main
and src/test
directory layout to match.
# Run tests and create a JAR
mvn package
# Run it
java -cp target/kotlin-maven-1.0-SNAPSHOT-jar-with-dependencies.jar com.mycompany.app.App