Easy Uberjars for Kotlin Projects

Jason Dusek
The Lyf So Short
Published in
1 min readSep 3, 2019

--

Gradle/Kotlin JVM projects are just a five short lines away from building self-contained, executable .jars, using the application and Shadow Gradle plugins:

From a Kotlin project template

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.

--

--