Easy Uberjars for Kotlin Projects
Published in
1 min readSep 3, 2019
Gradle/Kotlin JVM projects are just a five short lines away from building self-contained, executable .jar
s, using the application
and Shadow Gradle plugins:
After reading quite a few articles with much longer solutions, I was pleasantly surprised to see it was really this easy. Note that the Shadow plugin doesn’t have to be configured at all — it relies on the application
plugin to figure out the details, and in particular the main class.